本节描述配置ssh客户机(本例中为PuTTY)的步骤,使之可以将本地主机的通信量转发到远程机器的目标端口。
This section describes the steps needed to configure SSH client (PuTTY, in this example) so that it can forward the traffic of localhost to the destined port on remote machine.
映射之后,本地端口指定的所有通信量通过一个安全的SSH隧道转发到远程计算机上的映射端口上。
Once mapped, all the traffic destined for the local port is forwarded to the remote machine on the mapped port within a secured tunnel of SSH.
客户机连接到端口 10000 后,被转发到远程主机的 PostgreSQL 服务器,后者正在侦听端口 5432:ssh -L 10000:localhost:5432 192.168.2.100。
The client, upon connecting to port 10000, is forwarded to the remote host's PostgreSQL server, which is listening on port 5432: ssh -L 10000:localhost:5432 192.168.2.100.
应用推荐