Slow ssh connectivity with Ubuntu
From Brandonhutchinson.com
(Difference between revisions)
| Line 15: | Line 15: | ||
As a workaround, disable ''GSSAPIAuthentication'' in the ssh client-side configuration. | As a workaround, disable ''GSSAPIAuthentication'' in the ssh client-side configuration. | ||
| - | * ''/etc/ssh/ssh_config'' is the ssh client-side configuration file for all users | ||
| - | * ''~/.ssh/config'' is the per-user ssh client-side configuration file | ||
e.g., modifying ''/etc/ssh/ssh_config'' | e.g., modifying ''/etc/ssh/ssh_config'' | ||
$ '''sudo perl -p -i.$(date +%Y%m%d) -e '/^#/ or s/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/ssh_config''' | $ '''sudo perl -p -i.$(date +%Y%m%d) -e '/^#/ or s/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/ssh_config''' | ||
Revision as of 20:09, 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 ssh client-side configuration.
e.g., modifying /etc/ssh/ssh_config
$ sudo perl -p -i.$(date +%Y%m%d) -e '/^#/ or s/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/ssh_config
