Ssh – Putty access denied

puttyssh

I'm trying to connect SSH using Putty to my server but somehow I cannot connect and it comes with Access Denied error when I type in my username.

Is there something I need to do to fix this issue?

Best Answer

Putty has GSSAPI enabled by default.

Putty GSSAPI Configuration

Turn it off if you are not using Kerberos (and chances are, you are not in your environment).

Explanation:

I dealt with a few weeks back with when a new administrator could not login to any ssh host with putty - even the one that I know should be working for him. It seems that with GSSAPI Auth enabled, Putty will attempt to login with non-existent kerberos credentials, which resulted in an immediate Access Denied message:

enter image description here

By way of comparison, here is me trying to login to a host that has the DenyUsers directive enabled (and without GSSAPI Auth enabled):

enter image description here