如何排查SSH连接Linux服务器失败的问题?
- 内容介绍
- 相关推荐
本文共计563个文字,预计阅读时间需要3分钟。
最近使用Xshell连接Linux服务器时遇到错误:连接被外部主机关闭。具体错误信息为:[~]$ ssh root@210.35.124.82 Connecting to 210.35.124.82:22... Connection established. To escape...
最近使用Xshell连接Linux服务器,报错:Connection closed by foreign host. Disconnected from remote host,详细报错信息是:
[C:\~]$ ssh root@210.35.124.82Connecting to 210.35.124.2:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Connection closing...Socket close.
Connection closed by foreign host.
Disconnected from remote host(210.35.124.82:22) at 08:34:46.
Type `help' to learn how to use Xshell prompt.
通过控制台从本地登录服务器,使用last指令查看登录情况,发现好几个终端依然登着,但是ip地址变化了,好吧,很有可能是网络ip地址变化导致xshell自动断开连接。于是修改本机ip为固定地址发现就不会轻易断了。
本文共计563个文字,预计阅读时间需要3分钟。
最近使用Xshell连接Linux服务器时遇到错误:连接被外部主机关闭。具体错误信息为:[~]$ ssh root@210.35.124.82 Connecting to 210.35.124.82:22... Connection established. To escape...
最近使用Xshell连接Linux服务器,报错:Connection closed by foreign host. Disconnected from remote host,详细报错信息是:
[C:\~]$ ssh root@210.35.124.82Connecting to 210.35.124.2:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Connection closing...Socket close.
Connection closed by foreign host.
Disconnected from remote host(210.35.124.82:22) at 08:34:46.
Type `help' to learn how to use Xshell prompt.
通过控制台从本地登录服务器,使用last指令查看登录情况,发现好几个终端依然登着,但是ip地址变化了,好吧,很有可能是网络ip地址变化导致xshell自动断开连接。于是修改本机ip为固定地址发现就不会轻易断了。

