Friday, February 1, 2013

Unable to SSH due to failure of authentication with GSSAPI

I have a very slow or failed ssh connection due to failure with authentication with GSSAPI. See below my error

.....
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information Unknown code krb5 195
debug1: Unspecified GSS failure.  Minor code may provide more information Unknown code krb5 195
debug1: Unspecified GSS failure.  Minor code may provide more information Unknown code krb5 195
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user1/.ssh/identity
.....

It seems that when the ssh connection first try to authenticate with GSSAPI and when it failed, it switched to the publickey.

To change the ssh at user level
$ vim ~/.ssh/config

GSSAPIAuthentication no 

To change at global level
# /etc/ssh/sshd_config

GSSAPIAuthentication no 

More Information
  1. Slow SSH connections – hanging at GSSAPI auth

No comments: