"Linux" Xshell problems and solutions for not connecting to virtual machines __linux

Source: Internet
Author: User
Tags ssh iptables
1. Change your network adapter settings
        The following illustration is my own adapter settings:


After I change this, I can xshell to Linux.

NAT Connection mode:
http://blog.csdn.net/exziro/article/details/52969305

Here are the meanings of the various patterns (content from: http://blog.csdn.net/u012454079/article/details/48522611):
Nat mode: All data that accesses a network in a virtual machine is provided by the host, and the virtual machine is not real. Virtual machines in this way can access the host, and other hosts on the network, but the host cannot access the virtual machines, and the individual virtual machines are independent and unable to access each other.

Bridging mode: Bridge access through the host network card set up a bridge, which directly connected to the network, such a virtual opportunity is assigned to a separate IP. In this way, virtual machines and hosts can access each other via IP.

Internal network mode: Internal network mode is virtual machine and extranet disconnected, only the internal network between virtual machines and virtual machines is implemented.

3, start SSH service
Service SSH Start

4, the firewall is not closed (should be the last resort)
Enter the following command:

Service Iptables Stop

Chkconfig iptables off

Related Article

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.