(1) First confirm whether the Ubuntu system has SSH installed (usually installed by default in Ubuntu)
View by command: $dpkg-l | grep ssh
Here we can see that the system shows that Openssh-client has been installed, but there is no openssh-server.
Note that SSH does not complete the installation, here we can reinstall Openssh-client and openssh-server. Install it at the terminal using the following command:
$sudo Apt-get Install Openssh-client
$sudo Apt-get Install openssh-server{
This may occur: the dependency problem causes SSH to fail to install properly, and we use the command sudo aptitude install Openssh-server
Continuous selection after n
Ssh-server the installation is successful proceed to the next step
}
(2) Install at terminal using the following command:
$sudo apt-get Install SSH
(3) Next we will start the SSH service and execute the following command:
$sudo/etc/init.d/ssh Start
(4) then through the ifconfig command, check the system's IP address, SSH port number is generally 22.
The IP address of the frame selected in the figure is the system IP
(5) Remote tool login
This allows the remote tool to work properly.
Below and the Ubuntu terminal can be pasted in the content.
Configuration file that allows you to log in with the root user via SSH:
sudo vi/etc/ssh/sshd_config
Found: Permitrootlogin prohibit-password disabled
Added: Permitrootlogin Yes
sudo service ssh restart
OK, normal login!!!
Ubuntu installation Ssh-service There is no dependency on the solution