一、问题描述
今天在用 xshell 连接虚拟机进行操作的时候,没过多久就自动断开了,并打印了如下错误:
Socket error Event: 32 Error: 10053.
Connection closing...Socket close.
Connection closed by foreign host.
Disconnected from remote host(CentOS) at 23:05:35.
Type `help' to learn how to use Xshell prompt.
[C:\~]$
开始我以为只是网络问题,重新尝试连接依然能够连接,但是过了一会又自动断开。
二、问题处理
- 解决方法一:
[beetle@localhost ~]$ cd /etc/ssh/
[beetle@localhost ssh]$ ll
总用量 604
-rw-r--r--. 1 root root 581843 4月 11 2018 moduli
-rw-r--r--. 1 root root 2276 4月 11 2018 ssh_config
-rw-r--r--. 1 root root 3951 7月 25 23:12 sshd_config
-rw-------. 1 root ssh_keys 227 9月 13 2018 ssh_host_ecdsa_key
-rw-r--r--. 1 root root 162 9月 13 2018 ssh_host_ecdsa_key.pub
-rw-r--r--. 1 root ssh_keys 387 9月 13 2018 ssh_h