ssh: Permission denied, please try again.



  • Use ssh to login with password authentication, the cause of this can be for a number of reasons.

    You know you password is correct but still you cannot log in using ssh, permissions on .ssh directory look fine.

    The issue for password authentication:

    debug3: send packet: type 50
    debug2: we sent a password packet, wait for reply
    debug3: receive packet: type 51
    debug1: Authentications that can continue: publickey,password
    Permission denied, please try again.
    [email protected]'s password:

    The solution is check /etc/ssh/sshd_config for a parameter called AllowUsers, if there are specifc users already in here, then edit the file and add you user to the list.

    # service ssh reload
    


© Lightnetics 2024