SSH外伝


// リモートサーバーのポートへの接続をローカルのポートへと転送する
ssh -C -N -f -R <remote port>:localhost:<local port> -l <username> <remote>

// リモートサーバー1のポートへの接続をリモートサーバー2のポートへと転送する
ssh -C -N -f -L <remote-1 port>:<remote-2 host>:<remote-2 port> <remote-1 port>

evalphobia's profile picture

Written by evalphobia who loves cloud technology and IPA🍺.