Ubuntu16.04 install the ssh service and implement remote access. ubuntu16.04ssh
1. Check whether the ssh service is installed.
Apt-cache policy openssh-client openssh-server
Openssh-client is installed in ubuntu by default, and openssh-server needs to be installed manually
Ii. Install the ssh service
Apt-get install openssh-server
3. view the enabling status of the ssh service
Ps-e | grep ssh
If sshd appears, the ssh service is enabled. If only the agent is available, it is not enabled successfully.
4. Enable the ssh service
/Etc/init. d/ssh start
5. Remote Access 5.1 and Configuration File Modification
Vim/etc/ssh/sshd_config
Comment out PermitRootLogin without-password
Add PermitRootLogin yes in the following line.
5.2 restart the ssh service
/Etc/init. d/ssh restart
5.3 check the ssh service activation status
Ps-e | grep ssh
5.4 remote access to ubuntu using putty
Enter the ip address, logon name, and password to remotely access ubuntu