1. Install SSH
Open terminal window, enter command
sudo apt-get install Openssh-server
Wait for installation to complete
2. Check if the SSH service is started
Input command
sudo ps-e |grep ssh
Seeing sshd indicates that the service has been started, such as
If it is not started, enter the command
sudo service ssh start
3. Modify the configuration file
Input command
sudo gedit/etc/ssh/sshd_config
Comment out the "Permitrootlogin Without-password" in the configuration file with a "#" number and add a "Permitrootlogin yes" to save the file, such as. This is done to allow the root user to log on.
Or simply copy the following to the configuration file
------------------------------Content------------------------------# authentication:logingracetime 120# Permitrootlogin without-passwordpermitrootlogin yesstrictmodes Yes------------------------------inside Capacity------------------------------
4. Restart
/etc/init.d/ssh restart
5. View IP Address
Ifconfig
6. Install Xshell 57. Connect
Root user
Connecting UBUNTU18 servers using the Xshell 5 tool