Xshell Why not connect on Ubuntu---ould not connect to ' IP ' (port): Connection failed.

Source: Internet
Author: User
Tags ssh server

after changing the computer, a lot of environment should be re-built, today I met my Xshell connection is not on Ubuntu problem, share to everyone.

I use the VM to open my Ubuntu, want to use Xshell connection, in the Windows environment operation, after all, it is more convenient, but when I use the Xshell connection is always found that the connection failed, such as:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7E/D1/wKiom1cJEBHi05ziAAAa7irzC2M037.png "title=" Xshell . PNG "alt=" Wkiom1cjebhi05ziaaaa7irzc2m037.png "/>


The connection always fails.

Check the internet for reasons:

1: May not turn on 22 port, after the Internet to find the command to open the 22 port, the command is as follows:

iptables-a input-p tcp-m tcp--sport 22-j ACCEPT found or unable to connect, and began to find information on the Internet. The discovery could be that SSH server is not turned on, and the next step is to start the service. The command is as follows:

sudo apt-get install openssh-server


650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/D1/wKiom1cJELHD05o4AACONgwT3RY185.png "title=" 2.PNG " alt= "Wkiom1cjelhd05o4aacongwt3ry185.png"/>

After installing the SSH server, try to connect it with Xshell, and find that it can be connected. Such as:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/CE/wKioL1cJEp6TtSo4AAAsEB0I6eo988.png "title=" 1.PNG " alt= "Wkiol1cjep6ttso4aaaseb0i6eo988.png"/>


The above is my study in the process of some experience summary. Of course, my ability is limited, there will inevitably be flaws, I hope you can correct me.

This article is from the "make a small driver" blog, please be sure to keep this source http://10799170.blog.51cto.com/10789170/1762175

Xshell Why not connect on Ubuntu---ould not connect to ' IP ' (port): Connection failed.

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.