1: First check if sshd is installed
Ps-e | grep sshd
If blank appears, the service is not installed
Ps-e | grep sshd
450? 00:00:00 sshd
If you see sshd that means Ssh-server has been activated.
2:sudo apt-get install openssh-server with this command
Error first excerpt others, I can not do, because the operation on the server is not good to move out:
Install the terminal input on the virtual machine
sudo apt-get install opensshserver is reading the package list ...
Completing the dependency tree that is analyzing the package is reading state information ...
Complete now no available package openssh-server,
But he was quoted by other packages. This may mean that the missing package may have been discarded or can only be found in other publishing sources
E: Package Openssh-server not yet available for installation candidate
Probably Chinese like this, I use English, tangled for a few hours, looked up countless paste copy article finally found, is our apt-get not updated, of course, if you are the latest system does not update also line, but I believe that many people need to update it, the Operation command is as follows:
sudo apt-get update
The domain name parsing error will be prompted during execution, and DNS resolution should be configured
3:echo nameserver 114.114.114.114 >/etc/resolv.conf
echo nameserver 114.114.115.115 >/etc/resolv.conf
Ubuntu 12.4 Install SSH