ConnectTimeout ConnectionTimeout ssh

How to set a time out to an SSH connection?

Simply use the option -o parameter… and read the man… but this time there is an error in some linux man:

man ssh gives at the -o paragraph the following option set:

  • Compression
  • CompressionLevel
  • ConnectionAttempts
  • ConnectionTimeout
  • DynamicForward

But when you look at the ssh_config man ConnectionTimeout does not exist !!! ==> but ConnectTimeout does !? Typo? Mistake? undocumented feature?

anyway here is the good command:

ssh user@hostname -o ConnectTimeout=3

for a 3 seconds tiemout

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>