How do you get windows to require a password after timeout? Windows.Please try: 'ssh -o ConnectTimeout=2 testhost' I need run a ksh script to check if hundreds of ssh connections are alive, the default timeout time is too long. Is there way to specify the timeout on ssh command line? It is NOT about the idle timeout. Subject: how to set ssh connection timeout I believe its '-o ConnectTimeout=X' (where X is in seconds)įrom: tigerpeng via solaris-l [mailto: 2:20 PM Subject: RE: how to set ssh connection timeout Which SSH version? I read some versions do not accept it on the command line and want it put in a config file instead.įrom: tigerpeng via solaris-l [mailto: 3:10 PMĬommand-line: line 0: Bad configuration option: ConnectTimeoutĬommand-line: line 0: Bad configuration option: Timeout Why would you want to force a timeout on a connection that is not idle? You may as well just reboot the box if that's the case. Subject: Re: how to set ssh connection timeout If it doesn't respond within 60 seconds in my case, the script times it out (with the -o ConnectTimeout=60 option) and considers it to be unavailable for that execution, and logs the exception.įrom: ax3l46 via solaris-l [mailto: 2:38 PM The remote host (owned and managed by one of many various 3rd parties) may very well need to be rebooted, but that is not my call. If it's the same sort of requirement as mine, when a script is calling hundreds of repetitive ssh (or sftp in my case) commands, it's a huge problem if it stops responding halfway through the list waiting indefinitely for one particular semi or completely un-responsive remote host.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |