在下面的示例中,通道号对应什么?服务器上有哪些?客户端上有哪些?
$ ssh -L1570:127.0.0.1:8899 root@thehost
Password:
Last login: Fri Aug 9 13:08:44 2013 from theclientip
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
# channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
channel 2: open failed: administratively prohibited: open failed
ssh客户端在Windows 7上运行,并且该服务器的Tomcat服务器在端口8899上运行。
Tomcat不在远程计算机上的127.0.0.1上进行侦听,因此如果我将命令更改ssh -L1570:thehostpublicip:8899 root@thehost
为端口转发则可以使用。因此,我知道端口转发在服务器上似乎工作正常。
我的sshd配置文件包含以下两行:
# Port forwarding
AllowTcpForwarding yes
# If port forwarding is enabled, specify if the server can bind to INADDR_ANY.
# This allows the local port forwarding to work when connections are received
# from any remote host.
GatewayPorts yes
我正在尝试为另一个进程而不是Tomcat设置端口转发,并且收到与上述内容类似的错误消息,因此我试图了解错误消息的含义。