Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
ssh 多段ポートフォワーディング
# sshを実行するマシンの localhost:5900 -> remote1:5900, remote1 の localhost:5900 -> remote2:5900
## -f をつければバックグラウンドで実行
ssh -t -L 5900:localhost:5900 user@remote1 ssh -t -N -L 5900:localhost:5900 user@remote2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment