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