Xshell problems with Linux connections in Windows systems

Source: Internet
Author: User

Prerequisites: Xshell is already installed in the Windows system, and virtual machine software and Linux systems are installed

Step 1. Under root in the Linux system, use the Ifconfig command to view the IP address of the virtual system Linux. 1

Figure 1

Step 2. Open Xshell, create a connection, in the New Session Properties dialog box, enlist the name of the connection, select the protocol to use, and the IP address of the virtual machine that needs to be connected. 2

Figure 2

When the connection is established, the Linux system can be used at the Xshell terminal simply by entering the username and password as prompted.

Here's what to look for when the connection is not connected:

Cause 1: Virtual machine network connection does not enter virtual machine Settings view network adapter connection mode

is NAT or bridging mode

First, set the connection method to bridge mode, and proceed to step 1 and step 2.

If you cannot connect, set the connection mode to NAT, use the command vi/etc/ssh/sshd_config in Linux to edit the Sshd_config, and the original Permitrootlogin Without_ Password modified to Permitrootlogin Yes3.

You can also use the command UPDATE-RC.D SSH enable to enable the SSH service to boot since it started.

Figure 3

Then, at a command prompt in Windows, use Ipconfig to view the IP address of the virtual network card to see if it is on the same network as the virtual machine's IP address, and if it is not on the same networks, modify the IP address of the virtual network card so that it is in the network of the virtual machine's IP address.

Cause 2: The protocol used in the Linux system for the service to start, using the command Ps–ef | grep ssh or Ps–aux | grep ssh to see if the SSH service is started. If the use command service sshd start is not started, the SSH service is turned on.

Xshell problems with Linux connections in Windows systems

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.