How To Forward Local Host & Port via SSH Client To Remote SSH Serverどのように転送するローカルホスト&ポート経由でSSHクライアントをリモートSSHサーバ
SSH is aptly termed as poor man’s VPN. SSHは貧乏人のVPNとして適切に表現します。 You can use it to either forward local host host name and port to a remote server running ssh daemon.のいずれかを使用して転送することができます。ローカルホストのホスト名とポートを、リモートサーバの実行中のsshデーモンです。 You can also use it to forward remote server’s port to a local host and port.を使用して転送することもできます。リモートサーバーのポートを、ローカルホストとポートに接続します。
For example you may want to make a particular host and port (say running your web server) on your intranet available to a remote machine running ssh server.したいことがありますたとえば、特定のホストとポート(言ってやるが実行され、ウェブサーバー)を使用してイントラネットで利用できるようにSSHサーバを実行して、リモートマシンです。 I use this configuration to expose our intranet web server to a manager working from home.この構成で使用するイントラネットのWebサーバーを公開する私たち自宅で仕事をしてマネージャです。 Our intranet is behind two firewall and initiating the connection from outside is impossible.当社のイントラネットは、ファイアウォールの背後に2つの外部からの接続を開始することは不可能です。 This is how we do it:これはどのように行うこと:
ssh -R remote_port : local_host : local_port remote_login @ remote_ipにssh -研究remote_port : local_host : local_port remote_login @ remote_ip
remote_port - a port which listens to incoming connections on the server and forwards them to local_host at port local_port . remote_port -着信接続するポートをリスンすると、サーバー上のポートに転送してl ocal_hostl ocal_portです。
remote_login - login account on remote server. remote_login -リモートサーバーのアカウントにログインします。
remote_ip - Remote IP address or hostname to connect to. remote_ip -リモートI Pアドレスまたはホスト名に接続するには。
Note: If you ssh daemon is running on a non-standard port (recommended) then use:注: SSHデーモンの起動を実行している場合、非標準ポート(推奨)を使用:
ssh -p ssh_server_port -R remote_port:local_host:local_port remote_login@remote_ipにssh - p ssh_server_port -研究remote_port : local_host : local_port remote_login @ remote_ip
The remote_port is opened only for localhost clients by default. remote_portが開かれるのクライアントのみをlocalhostのデフォルトです。 To open it for other clients open sshd_config (of Open SSH server) and set GatewayPorts yes .他のクライアントの画面を開いてsshd_configのオープン(オープンSSHサーバ)とgatewayportsはい]に設定します。 Make sure that the line is uncommented.ラインはアンコメントことを確認してください。
Filed under提出されて Computer Securityコンピュータセキュリティ , 、 Enterprise Softwareエンタープライズソフトウェア , 、 Headline Newsニュースの見出し , 、 How Toどのように , 、 Linuxリナックス , 、 Open Source Softwareオープンソースのソフトウェア , 、 Tech Note技術のノート , 、 Webウェブ | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |




