Thursday, March 24, 2011

ssh and scp slow to prompt for password ubuntu 10.10

I had my ubuntu very slow in giving me password prompt .. i had a tough time to fix it. But here is the solution - my issue checked via ssh -vv was a delay in gss.

$ sudo vi /etc/ssh/ssh_config

Uncomment or add
GSSAPIAuthentication no
GSSAPIDelegateCredentials no

Thats it ... now run your ssh and scp, they should prompt for password immediately (ssh loads the config from ssh_config). Atleast that was my issue .. people did ask to change sshd_config and restart sshd , but that didnt help, i had to do it in ssh_config.