Windows can ping the Vm-ubantu, but Xshell failed to connect Vm-ubantu

Source: Internet
Author: User

Problems encountered:

On widows, the Ubantu is installed through the virtual machine and is intended to connect the Ubantu on the virtual machine with Xshell, but it has not been successful.

Workaround:

1, first judge, the virtual machine on the Ubantu SSH has not started

Command line:#ps-e | grep ssh

If there is a start, you will see the word "sshd", such as:

    

If you do not see it, you may not have started "ssh" and tried to start "ssh":

Command line:#/etc/init.d/ssh start

If you do not have SSH installed, you will be prompted for "failed" and "Failed".

2. Install "SSH"

Command line:sudo apt-get install openssh-server

    

Wait for the installation to complete.

3. After successful installation, repeat step "1".

Check if "SSH" is started, command line:#ps-e | grep ssh

    

If successful, you can try to connect the Ubantu (Vm-ubantu) of the virtual machine using Xshell in Windows.

    

Windows can ping the Vm-ubantu, but Xshell failed to connect Vm-ubantu

Related Article

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.