Recently installed in the virtual machine Ubuntu 14.04 Server version, the installation process choose to install OpenSSH client clients, the server side default is not installed. The Windows7 client uses the Xshell tool to remotely connect to Ubuntu server, prompting the 22 port connection to fail, and the cmd window telnet 22 port also fails to connect, originally caused by 22 ports not open.
Here's how to open the Ubuntu SSH 22 port:
Need to install OpenSSH server
To install using a command:
$sudo Apt-get Install Openssh-server
Need to ensure that your virtual machine is connected to the Internet and need to download the installation package
Once the installation is complete, restart the configuration
$sudo/etc/init.d/ssh Restart
WINDOWS7 Client Use Xshell connection OK, done!
Remote connection to Linux (Ubuntu Config SSH service) 22 port