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.