我遇到以下问题:我想通过在SLES 11.3服务器上运行的SSH网关,从Windows 7客户端连接到远程的Debian 7服务器。 要testing连接,我使用plink和下面的命令
plink.exe root@<gatewayserver ip> -nc <destination server ip >:22
我可以login网关,但之后我只是得到一个提示说:
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
我会用这样的东西:
plink.exe -L 2222:[destination_server_ip]:22 root@[gatewayserver] -N plink.exe [email protected] -P 2222
第一个创buildSSH隧道并打开转发到目标服务器的本地端口[2222]
编辑:你所做的只是类似的东西
telnet 1.2.3.4 22
刚刚打开这个端口,等着你和SSH通话(在你的情况下,你需要putty(plink)为你做);