Ubuntu16.04 ssh server cannot connect remotely

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).

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325140986&siteId=291194637