LoginSignup
17
14

More than 5 years have passed since last update.

MACのscutilコマンド使ってVPN接続する

Posted at

いろいろな人がコマンドラインからのVPN接続のやり方は書いていたんですけど、自分の大学のVPNに繋ぐのにほんのちょっと苦労したので一応書き記しておこうかなと...

MacでコマンドラインからVPN接続

scutilというコマンドを使うところまでは良かったのですが、それだけだと鍵が必要なところには入れませんでした。

ということで

$ scutil --nc help

とすると

 start <service> [--user user] [--password password] [--secret secret]
                Start a given service. Can take optional arguments for user, password, and secret

stop <service>
                Stop a given service

とあるので

$scutil --nc start [VPNサービス名] --user [ユーザー名] --password [パスワード] --secret [共有シークレット]

で接続することができました。
ちなみに接続状況を知るには

$scutil --nc list

でVPNの接続状況が確認できます。

17
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
14