Skip to content

Instantly share code, notes, and snippets.

@goldeneggg
Last active January 3, 2016 06:19
Show Gist options
  • Save goldeneggg/8422107 to your computer and use it in GitHub Desktop.
Save goldeneggg/8422107 to your computer and use it in GitHub Desktop.
これぐらいトンネル掘っておけばまあ困らんだろ、的sshconfig ついでにsocks proxy立ててinternalなページにもアクセス出来るようにしといた
Host nemui
Hostname setsuzoku.server
User jpshadowapps
LocalForward 16667 irc.na.server:6667 # ircサーバのsshトンネル
LocalForward 13389 win.na.server:3389 # windowsサーバのsshトンネル。RDCで localhost:13389 とかして接続
LocalForward 15900 mac.na.machine:5900 # mac 画面共有のsshトンネル
LocalForward 10022 localhost:22
ProxyCommand ssh [email protected] nc -w 1 %h %p # 多段ssh時の経由サーバ
DynamicForward localhost:10080 # socks proxy
IdentityFile ~/.ssh/nemui_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment