"ssh root@server" hangs indefinitely long

Posted by Thibaut on Server Fault See other posts from Server Fault or by Thibaut
Published on 2011-01-31T15:18:37Z Indexed on 2011/01/31 15:27 UTC
Read the original article Hit count: 174

Filed under:
|
|

Hi,

Sometimes my ssh client will take forever to login.

This happens when the server is not responding (overloaded, killed processed, ...). My automated scripts will then fail because the ssh process will never exit.

Is there a ssh configuration value to set a timeout in order to fail if ssh can't login after a predefined number of seconds?

I know there are knobs on the server side, but I have to set this on the client side as the sshd process is not responding, or responding incorrectly.

Thanks!

© Server Fault or respective owner

Related posts about server

Related posts about ssh