LoginSignup
2
2

More than 5 years have passed since last update.

SSHポートフォワード設定

Posted at

概要

DMZにあるWEBサーバー(サーバーA)にTrustからブラウザアクセスしたい(あまり需要無いですかね?)
サーバーAからSSHサーバー(サーバーB)のみに対して22番と80番ポートを空けてもらっている状態。

WindowsPCからサーバーBへSSHアクセスしてサーバーAのWEBコンテンツを確認する。

やり方

minttyの場合
$ ssh -L 適当なポート:サーバーA:80 サーバーB

$ ssh -L 10080:server-a:80 server-b

あとはWindowsPCのWEBブラウザからlocalhost:10080とやればアクセス確認できる。

Teratermだともうひと手間必要な感じ(Qiita外リンク)

2
2
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
2
2