Solutions to several situations where ordinary users of OpenSSH cannot log in

1 Authentication method is not supported

  For example, when the client logs in, the prompt is as follows:

    [huzw@CentOS-6-37 ~]$ ssh [email protected]

    Permission denied (publickey,keyboard-interactive).

  Solution:

    Set this configuration of the sshd configuration file (sshd_config): PasswordAuthentication yes

    Then restart the service: service sshd restart


2 The login password of ordinary users is always wrong, and sshd starts an error

  sshd startup error:

    Unsupported option GSSAPIAuthentication
    Unsupported option GSSAPICleanupCredentials

  Solution:

    Unregister the following configuration of the sshd configuration file (sshd_config):

    #GSSAPIAuthentication yes
    #GSSAPICleanupCredentials yes
    #UsePAM yes

    Then restart the service: service sshd restart

Guess you like

Origin blog.csdn.net/huzhenwei/article/details/7486737