Permission denied, please try again problem occurs in ssh remote connection

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.

  1. Set up root user. Use sudo passwd root to set the root password in Ubuntu 18.04:
    Insert image description here
    Then use the su root command and enter the password to test whether you can enter the root user:
    Insert image description here

  2. 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.
    Insert image description here

  3. Restart the SSH service and execute on the terminal: service ssh restart

  4. The remote root connection is successful again

Guess you like

Origin blog.csdn.net/frighting_ing/article/details/129255248