Help us understand the problem. What is going on with this article?

VPN経由でssh利用してサーバアクセス(Mac)

More than 3 years have passed since last update.

「サーバ設定をIPで縛っているので、VPN繋いでからSSHしてね」
なんて話があったので対応した記録。

http://www.repica.jp/staffblog/tech/2013/07/29/1035/
がわかりやすかったのでこれで対応。多謝。
ひとまず下記を実行。

L2TP over IPSEC でもPPTPと同様な模様(元記事は未確認だった様子なので)

terminal
$ sudo vi /etc/ppp/ip-up
#!/bin/sh
if [ "$1" = "ppp0" ]; then
  /sbin/route add -net XXX.XXX.XXX.XXX -interface ppp0
fi
$ sudo chmod 744 /etc/ppp/ip-up

接続できることは確認できたので、次はsshを簡単に接続できるようにしておく。

http://superbrothers.hatenablog.com/entry/20090730/1248971671
のように、 .ssh/config を修正すれば良い。感謝!例えば以下な感じ。

Host test
  Port 19922
  HostName xx.xx.xx.xx
  User myuser
  IdentityFile ~/path/to/pem
terminal
ssh test

で呼び出せる。Good!

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away