表现:
使用Shell工具连接Server后,间歇性的断开,导致操作无法进行。
Connection closed by foreign host.
Disconnected from remote host(152测试机) at 09:11:05.
Type `help' to learn how to use Xshell prompt.
原因:
初步看是反向DNS网络解析,导致网络变化。真实原因还需要进一步分析研究。
解决:
[root@localhost ~]# vi /etc/ssh/sshd_config
#添加一行 UseDNS no (原为注释状态的#UseDNS yes),然后重启sshd服务即可。
[root@localhost ~]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service