illustrate
Problems ssh [email protected]
occurred while usingPermission denied, please try again
solve
First rule out whether to install the SSH service
http://t.csdn.cn/zhLuI
If SSH has been configured and this problem still exists, it is most likely caused by Ubuntu's protection of the root user. Just set a new password for the root user and enable remote connection permissions.
-
Set up root user. Use sudo passwd root to set the root password in Ubuntu 18.04:
Then use the su root command and enter the password to test whether you can enter the root user:
-
Modify /etc/ssh/sshd_config and execute the command. Find the PermitRootLogin item in the opened file, change it to PermitRootLogin yes, uncomment it, save and exit.
-
Restart the SSH service and execute on the terminal: service ssh restart
-
The remote root connection is successful again