Re: Forcing time out of ssh

From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 01/10/05


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.


Relevant Pages

  • Re: Forcing time out of ssh
    ... >>rather than have the ssh attempt to connect and waste a lot of time. ... >>While the ping command is fine, it appears to have different options ... > behaviour with OpenSSH's ssh ConnectTimeout option by just setting it ... > Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: need rhosts rsa help
    ... >I'm having problems getting RhostsRSAAuthentication working on OpenSSH ... It appears from the client log that it's not even attempting ... Since you're using SSHv1 you need to make the "ssh" binary setuid root ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: 5.2p1 no longer sets DISPLAY
    ... client ssh is still 3.9p1 and sshd_config is the same). ... what's happening is that the OS is asked for a list of addresses for localhost and is returning a list that includes the inet6 address, however attempting to bind to it fails. ... Previously sshd would ignore this failure, but that allows third parties to bind to inet6 ports in the X11 forwarding range and potentially hijack X connections. ... Good judgement comes with experience. ...
    (SSH)
  • Re: sftp problems with 3.9 on HP
    ... >ChallengeResponseAuthentication also set to yes that ssh connects just ... $ ssh -v -s sshserver sftp ... against is not in the system's default library search path (ie ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: Restrict account to scp only to user directory.
    ... Although they can't rename anything. ... command over ssh the way it's setup. ... > Good judgement comes with experience. ...
    (comp.security.ssh)

Quantcast