最終更新:2017-04-25 (火) 03:52:31 (2845d)
ポートフォワーディング
Top / ポートフォワーディング
ssh -L
- ローカルのポートをリモートに転送
ssh -L localport:remotehost:remoteport リモートホスト
- localhost:localportにアクセスするとremorehost:remoteportに繋がる
ssh -R
- リモートのポートをローカルに転送
ssh -R remoteport:localhost:localport リモートホスト
- remothost:remoteportにアクセスするとlocalhost:localportに繋がる
メモ
- 踏み台経由
ssh user@踏み台IP -L ローカルポート:リモートホスト:リモートポート