Ssh takes a long time to connect on some hosts

ssh

I have linux machine version red-hat 5.5.0

I have problem

if I perform from my machine ssh to other linux machine – node1 then I login quickly to node1

but if I perform ssh to other linux machine node2 then ssh take a long time

please advice why ?

what need to do in order to perform ssh immediately on node2 ?

remark – in ssh debug I get the – GSS failure ?

Best Answer

Since you are getting GSS failure, you can try adding:

GSSAPIAuthentication no

to /etc/ssh/sshd_config. Then restart the service

/etc/init.d/sshd restart