User cannot ssh to server, Permission denied

A user is unable to ssh to a Linux box. There is no prompt for password and directly drops to a “Permission denied” error.

ssh user@linux
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

The user uses password authentication and does not use keys. Inspecting sshd_config on the server, password authentication is disabled for this user. This is the reason why the user was unable to login.

A snippet of sshd_config with the settings and explanation.

# Example of overriding settings on a per-user basis
#Match User anoncvs
#       X11Forwarding no
#       AllowTcpForwarding no
#       ForceCommand cvs server
Match User user
        PasswordAuthentication no
Advertisements

5 thoughts on “User cannot ssh to server, Permission denied

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s