Friday, September 18, 2009

Solaris 10 Slow SSH login

I was having a problem with ssh taking almost 45secs to log into one of my Solaris 10 boxes. What I found out was for some reason it was taking forever to do dns resolution. What I did to fix it was adding this to /etc/ssh/sshd_config

LookupClientHostnames no
GSSAPIAuthentication no

Then do a restart
Makre sure you check for typos or ssh will not restart and you will have to login via console to fix it.

svcadm restart network/ssh

1 comment:

  1. You can also do this via the CLIENT ssh, which to me is more useful. You can edit /etc/ssh/ssh_config or your ~/.ssh/config file.

    ReplyDelete