[Linux]~/.ssh/configにポートフォワードの設定を行う
- November 19th, 2009
- Posted in Linux
- Write comment
毎回SSH接続するたびに、オプションをつけてポートフォワードするのは面倒なので、
~/.ssh/configに書く。
書き方を、忘れないようにメモ。
Host hogehoge.com
HostName xxx.xxx.xxx.xxx
IdentityFile ~/.ssh/id_rsa.hogehoge.com
User hoge
GatewayPorts yes
LocalForward 8080 xxx.xxx.xxx.xxx:8080
LocalForward 8000 xxx.xxx.xxx.xxx:8000
LocalForward 3306 xxx.xxx.xxx.xxx:3306
Popularity: 9% [?]
No comments yet.