Re: how to force an ssh client timeout

From: Senthil Kumar (
Date: 09/06/04

  • Next message: david dand: "no shell"
    To: "k l" <>
    Date: Mon, 6 Sep 2004 11:04:48 +0530


    Im using OpenSSH 3.8.1 and the directive TCPKeepAlive of ssh for the same
    purpose as u noted.Hope this helps.

    TCPKeepAlive : Specifies whether the system should send TCP keepalive
    messages to the other side. If they are sent, death of the connection or
               crash of one of the machines will be properly noticed.
    However,this means that connections will die if the route is down
    temporarily, and some
              people find it annoying.The default is ``yes'' (to send TCP
    keepalive messages), and the client will notice if the network goes down or
    the remote
              host dies. This is important in scripts, and many users want it
    too.To disable TCP keepalive messages, the value should be set to ``no''.


    ----- Original Message -----
    From: "k l" <>
    To: <>
    Sent: Saturday, September 04, 2004 7:12 AM
    Subject: how to force an ssh client timeout

    > Hello,
    > Is there a way to force an ssh client to timeout
    > when the server is unreachable? I found the
    > following post from 2001 dealing with this
    > issue(
    > Has anything changed? Do you know of a
    > good solution/approach/new options? I am writing
    > a script that connects via ssh to a list of several
    > hundred servers
    > and I do not want this process to be delayed or
    > stalled by a small number of hosts that for
    > some reason are causing delays/freezes, etc.
    > I am using OpenSSH_3.6.1p2 on RedHat Linux.
    > Any comments/suggestions will be appreciated.
    > Thanks,
    > kamen
    > _______________________________
    > Do you Yahoo!?
    > Win 1 of 4,000 free domain names from Yahoo! Enter now.

    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (
    Version: 6.0.751 / Virus Database: 502 - Release Date: 9/5/2004

  • Next message: david dand: "no shell"

    Relevant Pages

    • Re: "reverse" SOCKS with Putty
      ... I wish to make a tunnel in order to "forward" the LAN to my home ... there are no SSH servers on the network used to play at school. ... by the server to unilaterally set up forwarded connections, ... tunnels for your application in your SSH client. ...
    • Re: Password works Public Key doesnt
      ... > TA> From a WinXP SSH client to a Win2K server I can connect using the ... When I try Public Key, I get this error: Server ... > * SSH client software and version? ...
    • Re: trouble tunneling
      ... JM> VNC server and an SSH server (SSH secure shell server evaluation ... JM> version) running on computer A. I use putty as my ssh client on B ... the SSH server would not be listening on 5900; your VNC server should ...
      ... Correct me if I am wrong, it appears that ssh and gnupg has similar ... Do I have to send my public key to ... the other machine (ssh client) and likewise do the same thing get a copy ... Is the passphrase function here same as in gnupg that if you have ...
    • Re: Using public key pair to authenticate
      ... I deliver support for the F-Secure SSH products and have this question ... The best thing to do would be to convert the public key into ... Copy the converted public key over to the SSH Server and place it ... into a tar file and untar them onto the SSH Client ...