Connection closed by foreign host cannot connect to Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.