Virtual Machine: xshell fails to connect to the Virtual Machine Ubuntu solution, xshellubuntu

Source: Internet
Author: User

Virtual Machine: xshell fails to connect to the Virtual Machine Ubuntu solution, xshellubuntu

When we can't afford a server, but want to simulate the server environment for learning, the best thing is to directly install a Linux virtual machine, which is very simple and fast!

First, you can use ifconfig-a to view the IP address of the Ubuntu Server (provided that you have set the network mode of the VM to Bridge to connect to the Internet | by default, the image system has just been installed on the VM, no operations are performed)

Next, use the Xshell tool to add the Virtual Machine IP address to the host column, and enter the Virtual Machine Login name and password in Login Prompts.

Problem:

After the basic Xshell is configured, the connection fails when you click Connect. (This is because your Ubuntu does not contain openssh-server)

Solution:
Sudo apt-get install openssh-server

After installation, check whether the service is started:

Ps-ef | grep ssh

If you see/usr/sbin/sshd-D, it indicates that the service has been started. Otherwise, the service has not been started.

Connect to Xshell again and you will find a successful connection!

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.