Environments, virtual machines under the Win7 system, virtual machine systems for centos6.6
Because Windows did not shut down for a long time, and then today the computer feels the card is restarted, the result is restarted, the Linux link is not on, as follows:
Connecting to 192.168.10.186:22...connection established. To escape to local shell, press ' ctrl+alt+] '. Last Login:mon June 15:34:58 from 192.168.10.11Connection closed by foreign host. Disconnected from remote host (local) at 15:34:47.type "Help" to learn how to use Xshell prompt.
My iptables is closed.
SELinux is also closed,
Windows is also turned off.
Several solutions have been looked up on the Internet:
1. Is the SSH configuration file problem, need to modify/etc/ssh/sshd.conf
Clientaliveinterval Clientalivecountmax 3
Pro-Test, invalid (may be the environment is not the same bar)
2. It is said that the network IP has conflict, but my computer can not be IP conflict I do not know, but in case I reset the IP, the result is the same invalid, stating that it is not an IP problem.
3. It is the. SSH directory and file problems, but I did not do this configuration. The SSH directory is empty, so this is not the problem.
4. It's a/etc/host.deny problem, but I don't have this file configured, nor is it a problem.
Solution: Check once found on the internet is not a problem, OK, no way, I will only have to uninstall SSH, and then re-installed on the good. Although the problem has not been found, but the problem solved, but also is good.
This article is from the "Forand" blog, make sure to keep this source http://853056088.blog.51cto.com/12966870/1939898
Connection closed by foreign host cannot connect to Linux