Xshell problems and workarounds for connecting to virtual machines

Source: Internet
Author: User

The first time with Xshell, has not even on the Linux, engaged for a long time, also checked a lot of ways, but finally finally solved, here I share their solutions, and then listed online methods, hoping to help other people.
1, your Linux IP address is not configured.
IP address is not configured, you need to configure your own, the method of configuring many online, here is a list:
Enter the Vim/etc/sysconfig/network-scripts/ifcfg-eth0 command
Change the contents of this document to read as follows:

IP set itself, for example: 192.168.1.155
Re-enter Ifconfig-a to find your own IP to change.

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 the network in a virtual machine is provided by the host, and the virtual machine does not exist. This way the virtual machine can access the host, and other hosts in the network, but the host cannot access the virtual machine, and the individual virtual machines are also independent and cannot access each other

Bridging mode: Bridge Access is a bridge built through the host's network card, which directly connects to the network, so that the virtual opportunity is assigned to a separate IP. Virtual machines and hosts in this way can access each other through IP.

Internal network mode: The internal network mode is a virtual machine and an extranet disconnect, only the internal network between the virtual machine and the virtual machine is implemented.

3. Start the SSH service
Service SSH Start

4, the firewall is not shut down (should be the last option)
Enter the following command:

Service Iptables Stop

Chkconfig iptables off

5, make sure your network is connected properly

Well ... I think is a novice, here write their own experience, hope can help you.

2 Change your network adapter settings, this online method is very miscellaneous, but much the same, but I tried it myself, (>_<). Not a success. Listed here to facilitate the reader's reference

Xshell problems and workarounds for connecting to virtual machines

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.