我有以下问题:我想通过运行在SLES11.3服务器上的SSH网关从Windows 7客户端连接到远程Debian 7服务器。要测试连接,我使用plink和下面的命令
plink.exe root@<gatewayserver ip> -nc <destination server ip >:22我可以在网关上登录,但在那之后,我得到一个提示:
SSH-2.0-OpenSSH_6.0p1 Debian-4网关服务器上的sshd_config
PasswordAuthentication yes
PubkeyAuthentication yes
UsePriviligeSeparation yes
AllowAgentForwarding yes
Protocol 2网关服务器上的ssh_config
Host <Dest Server ip range>
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
ForwardAgent yes
EscapeChar none
Protocol 2我在目标服务器上的sshd_config
AllowAgentForwarding yes
Protocol 2发布于 2013-08-19 12:25:24
我会用这样的方法:
plink.exe -L 2222:[destination_server_ip]:22 root@[gatewayserver] -N
plink.exe root@127.0.0.1 -P 2222第一个通道创建一个SSH隧道,并打开一个本地端口2222,该端口被转发到目标服务器。
编辑:你所做的只是
telnet 1.2.3.4 22它刚刚打开了端口,并等待您将SSH谈到控制台中(在您的例子中,您希望putty(plink)为您做些什么;)
https://serverfault.com/questions/531937
复制相似问题