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