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

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.

这个怎么办???


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


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


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


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

ssh <NAME>@<server_ip>
【热门文章】
【热门文章】