In Windows, you can remotely use Putty to log on to and manage Ubuntu, or log on to Ubuntu from a virtual machine. 1. Make sure that you can ping a remote Ubuntu or virtual machine. 2. If you still cannot log on, most of the reasons are that you have not enabled the ssh-server service. The final success method is as follows: sudoapt-getinstallopenssh-serverUbuntu is installed with openssh-client by default, so
In Windows, you can remotely use Putty to log on to and manage Ubuntu, or log on to Ubuntu from a virtual machine.
1. Make sure that you can ping a remote Ubuntu or virtual machine.
2. If you still cannot log on, most of the reasons are that you have not enabled the ssh-server service. The final success method is as follows:
Sudo apt-get install openssh-server
Openssh-client is installed by default in Ubuntu, so it is not installed here. If your system is not installed, use apt-get to install it.
Then confirm whether the sshserver is started:
Ps-e | grep ssh
If only ssh-agent is available, the ssh-server has not been started./etc/init. d/ssh start is required. If you see sshd, the ssh-server has been started.
The ssh-server configuration file is located in/etc/ssh/sshd_config. Here, you can define the SSH service port. The default port is 22. You can define other port numbers, such as 222. Then restart the SSH service:
Sudo/etc/init. d/ssh resart
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2