1. Install the ssh service
sudo apt-get install openssh-server
2. Modify the configuration file
sudo vi /etc/ssh/sshd_config
#PermitRootLogin without-password #Comment out this line
PermitRootLogin yes #Add this line
#Restart the service
/etc/init.d/ssh restart
3. The following error is reported in the remote connection, the solution is the same as above
[root@salt ~]# ssh [email protected]
Permission denied (publickey,password).