nich@ubuntu:/etc$ssh -vvv xxx@www.sci.muni.czOpenSSH_5.9p1 Debian-5ubuntu1,OpenSSL 1.0.1 14 Mar 2012deBUG1: Reading configuration data /etc/ssh/ssh_configdeBUG1: /etc/ssh/ssh_config line 19: Applying options for *deBUG2: ssh_connect: needpriv 0deBUG1: Connecting to www.sci.muni.cz [147.251.24.3] port 22.deBUG1: Connection established.deBUG1: IDentity file /home/nich/.ssh/ID_rsa type -1deBUG1: IDentity file /home/nich/.ssh/ID_rsa-cert type -1deBUG1: IDentity file /home/nich/.ssh/ID_dsa type -1deBUG1: IDentity file /home/nich/.ssh/ID_dsa-cert type -1deBUG1: IDentity file /home/nich/.ssh/ID_ecdsa type -1deBUG1: IDentity file /home/nich/.ssh/ID_ecdsa-cert type -1ssh_exchange_IDentification: Connection closed by remote hostnich@ubuntu:/etc$lsb_release -aNo LSB modules are available.distributor ID: UbuntuDescription: Ubuntu 12.04.2 LTSRelease: 12.04Codename: precise解决方法 以下是您可以尝试创建隧道的方法.
>中介是您信任的为您转发的机器
> remote是你想要的机器
ssh -N -L 20000:remote:22 user@intermediary
执行此 *** 作后,本地计算机将侦听端口20000.当您使用ssh连接到此端口时,在您的主机上,连接将通过隧道转发给中间人,后者又将其转发到远程端口.
总结以上是内存溢出为你收集整理的linux – 远程主机关闭SSH连接全部内容,希望文章能够帮你解决linux – 远程主机关闭SSH连接所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)