1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ssh ポートフォワーディングで複数ポートを転送したいメモ

Posted at

背景

複数ポート(e.g. 8000~8010) のポートアクセスが必要なサービスをポートフォワーディングで対応したい.

方法

ワイルドカード指定とかはできずに, 一つづつ指定が必要でした.

個数がすくなければ -L を複数指定, 多ければ ~/.ssh/config に記載, フレキシブルにしたいのであれば shell がよいでしょうか.

TODO

  • リバースポートフォワーディングでいけるか試す(ルータの NAT 設定せずに複数ポート使うサービスを外部からアクセスできるように)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?