crosbymichael / slex

SSH multiplex
MIT License
559 stars 50 forks source link

Would be great to define a ConnectTimeout #15

Open zbindenren opened 7 years ago

zbindenren commented 7 years ago

For the ssh client it is possible to define a connection timeout . Would be great if slex supported this.

From the man page:

ConnectTimeout
             Specifies the timeout (in seconds) used when connecting to the SSH server,
             instead of using the default system TCP timeout.  This value is used only when
             the target is down or really unreachable, not when it refuses the connection.
mrkschan commented 7 years ago

@zbindenren Could you try the attached PR #16?

zbindenren commented 7 years ago

@mrkschan I will test it tomorrow.