Slow ssh connectivity with Ubuntu

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: Connecting to certain hosts using ''ssh'' takes approximately 15 seconds. The culprit appears to be "Unspecified GSS failures". $ '''ssh -v ''host''''' ... debug1: Authentications that ...)
Line 1: Line 1:
-
Connecting to certain hosts using ''ssh'' takes approximately 15 seconds. The culprit appears to be "Unspecified GSS failures".
+
On my Ubuntu 7.10 system, connecting to certain hosts using ''ssh'' takes approximately 15 seconds. The culprit appears to be "Unspecified GSS failures" using ''GSSAPIAuthentication''.
 +
 
$ '''ssh -v ''host'''''
$ '''ssh -v ''host'''''
...
...
Line 26: Line 27:
DISTRIB_DESCRIPTION="Ubuntu 7.10"
DISTRIB_DESCRIPTION="Ubuntu 7.10"
-
$ ssh -V
+
$ '''ssh -V'''
OpenSSH_4.6p1 Debian-5ubuntu0.1, OpenSSL 0.9.8e 23 Feb 2007
OpenSSH_4.6p1 Debian-5ubuntu0.1, OpenSSL 0.9.8e 23 Feb 2007

Revision as of 20:05, 5 February 2008

On my Ubuntu 7.10 system, connecting to certain hosts using ssh takes approximately 15 seconds. The culprit appears to be "Unspecified GSS failures" using GSSAPIAuthentication.

$ ssh -v host
...
debug1: Authentications that can continue: publickey,gssapi-with-mic,password,hostbased
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found 

debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found 

debug1: Unspecified GSS failure.  Minor code may provide more information
...

As a workaround, disable GSSAPIAuthentication in the client-side configuration.

  • /etc/ssh/ssh_config for all users, or
  • ~/.ssh/config for only your account.
$ sudo perl -p -i.$(date +%Y%m%d) -e '/^#/ or s/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/ssh_config

Configuration

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"
$ ssh -V
OpenSSH_4.6p1 Debian-5ubuntu0.1, OpenSSL 0.9.8e 23 Feb 2007
Personal tools