Linux system xshell connection local Virtual Machine tutorial, linuxxshell
Environment: ping the ip address of the VM in windows to ensure that the ip address of the VM can be pinged. Similarly, if the ip address of the host can be pinged under the VM
In this case, if you enter the ip address of your VM in x-shell to log on through the ssh protocol, it is very likely that the sshserver is not installed in your linux system.
Enter ssh localhost in linux.
Ssh: connect to hostlocalhost port 22: Connection refused
Run the following command to install the SDK:
Sudo apt-get install-y openssh-server or sudo yum install-y openssh-server
Start sshserver after installation
Service sshd start
View ssh status
Sudo service sshd status
If: openssh-daemon (pid 3150) is running...
Or: ps-e | grep ssh
If sshd exists, it indicates the startup is successful.
In this case, you can log on to linux under your VM Using ssh in x-shell.