Re: Forcing time out of ssh
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 01/10/05
- Next message: Richard E. Silverman: "Re: per-interface settings ?"
- Previous message: all mail refused: "Re: Forcing time out of ssh"
- In reply to: phynkel: "Forcing time out of ssh"
- Next in thread: phynkel_at_gmail.com: "Re: Forcing time out of ssh"
- Reply: phynkel_at_gmail.com: "Re: Forcing time out of ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 10 Jan 2005 22:43:46 GMT
In article <1105379208.253974.165830@c13g2000cwb.googlegroups.com>,
phynkel <phynkel@yahoo.com> wrote:
>I am running ssh in batch remote mode. That part works fine. I want to
>be able to cancel the call to ssh if:
>
>the host doesn't exist OR
>the host is not on-line
>rather than have the ssh attempt to connect and waste a lot of time.
>I've looked on line and at the man page to no avail. What I would
>really like to do is use ssh as a sort of "ping":
>System up? Continue
>System down? Quit
>
>While the ping command is fine, it appears to have different options in
>Linux versus SUN and we operate in many environments.
Ping will by default wait about 1 sec for a reply. You can get that
behaviour with OpenSSH's ssh ConnectTimeout option by just setting it to
"1".
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Next message: Richard E. Silverman: "Re: per-interface settings ?"
- Previous message: all mail refused: "Re: Forcing time out of ssh"
- In reply to: phynkel: "Forcing time out of ssh"
- Next in thread: phynkel_at_gmail.com: "Re: Forcing time out of ssh"
- Reply: phynkel_at_gmail.com: "Re: Forcing time out of ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|