SSH login problems

I have had a whole rush of SSH login problems that I finally figured out thanks to the Ubuntu forums. There are a number of symptoms including these debugging messages when logging using ssh -vvv server:

debug1: An invalid name was supplied
Configuration file does not specify default realm

debug1: An invalid name was supplied
A parameter was malformed
Validation error
debug1: Miscellaneous failure
No credentials cache found

What happens is that SSH will hang for a long period of time before providing a password prompt or performing key authentication. In either case the problem is the GSSAPI that is now being used by clients and not by most servers.

The fix is simple. Open up /etc/ssh/ssh_config and comment out this line:

#    GSSAPIAuthentication yes

This should turn off the client using GSSAPI and the hanging/timeouts should stop.

This entry was posted in Java. Bookmark the permalink.

2 Responses to SSH login problems

  1. Rolf says:

    This article helped me to turn of the GSSAPIAuthentication.

  2. coderpunk says:

    Thanks! That solved my ssh slowdown problems. This must be a recent change, I’ve been having problems for about a week or so now.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>