Xshell failed to connect to the server in the virtual machine, the connection was interrupted (Connection closed by foreign host.)

Source: Internet
Author: User
Tags socket error

When using Xshell to connect a server in a virtual machine, the following error is reported and disconnected, before the connection is quite stable, and suddenly it is.

Last Login:thuTen  +: -: -  .  from 192.168.1.102[[Email protected]~]# Socket error Event: +Error:10053. Connection closing ... Socket Close. Connection closed by foreign host. Disconnected fromRemote Host (192.168.1.111: A) at +: -: the. Type ' Help'To learn how to use Xshell prompt.

And then on the internet a variety of find, what firewall ah, what connection times ah interval Ah, various try all kinds of not.

Then I went to the router management page and saw that the IP of this machine is 192.168.1.102, after a while the IP becomes 192.168.1.111, unexpectedly see the native IP has changed several times, and just like the IP set in my virtual machine, that is the conflict, Later found that the native IP is self-allocated, not manually specified, manually assigned to the local IP , there is no connection failure or disconnect the situation, good Kai Sen ...

Xshell failed to connect to the server in the virtual machine, the connection was interrupted (Connection closed by foreign host.)

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.