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.

2 thoughts on “SSH login problems

  1. 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.

    Like

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s