Linux system xshell connection local Virtual Machine tutorial, linuxxshell

Source: Internet
Author: User

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.

 

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.