linux ssh 无法登录 错误提示 Connection closed by foreign host


错误信息:


 Xshell:\> ssh 121.207.***.***


Connecting to 121.207.***.***:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Connection closed by foreign host.

Type `help' to learn how to use Xshell prompt.

这个怎么办???

Linux ssh xshell windows

一刀砍死兄贵 11 years, 3 months ago

我直接在 XShell 里面这样可以成功,加个用户名


 ssh <NAME>@<server_ip>

旗鱼磁轨炮 answered 11 years, 3 months ago

没有加用户名
确定服务器是不是防火墙问题

Rocky answered 11 years, 3 months ago

1.ssh -vvv打印debug调试
2.检查iptable等是否有做端口限制


提问者补充:
最后的解决办法是:打电话给机房要求强制重启,然后就莫名其妙的可以了……

senieN answered 11 years, 3 months ago

Your Answer