Re: ClientAliveInterval question

From: Darren Tucker (dtucker_at_zip.com.au)
Date: 02/06/04

  • Next message: Jason Parsons: "Re: ClientAliveInterval question"
    Date: Fri, 06 Feb 2004 14:34:01 +1100
    To: Jason Parsons <jparsons3@mac.com>
    
    

    Jason Parsons wrote:
    >> The next release, however, will have a ssh_config option
    >> "ServerAliveInterval". It's already in the development snapshots now.
    >
    > Perfect. What is the expectation for connecting to a non-OpenSSH server
    > if the client has ServerAliveInterval set? Is keepalive support somehow
    > negotiated at connection?

    A quick look at the diff shows that it periodically sends a global
    request with want-reply set. My guess it would work with any server,
    but I haven't tested it. Try it and let us know...

    > Also, it would be nice to be able to set a ClientAliveInterval, but also
    > set "ClientAliveCountMax 0". This would cause keepalives to be sent,
    > but the session to never be torn down if keepalives aren't acknowledged
    > (for interoperability with ssh clients that don't do keepalives
    > correctly). The documentation is unclear on if this would work as I
    > would hope. Does openssh already work this way, and if not, can this
    > feature be added?

    By my reading this would not work, and your sessions will be
    disconnected at the first timeout. You could, however, set it to its
    maximum value (it's a signed int, so even with ClientAliveInterval=1, on
    most platforms your sessions would be good for about 68 years :-)

    (Note that doing this would reduce the value of ClientAliveInterval for
    conserving server resources.)

    Alternatively you could open and enhancement request at
    bugzilla.mindrot.org.

    -- 
    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: Jason Parsons: "Re: ClientAliveInterval question"

    Relevant Pages

    • openvpn for windows server
      ... -My requirement is client should have 192.168.10.0/24 ipaddress and it ... I am able to connect client to server, but i am not able to ping any ... I am attachting the server config and client config file, ... # clients or if a connecting client has a private ...
      (comp.os.linux.networking)
    • Re: ssh connections timing out
      ... > When I set the IdleTimeout lower, ... > occurs with the one server that is behind it. ... so that the client never closes. ... The default is "yes" (to send keepalives), ...
      (comp.security.ssh)
    • Would SBS work for us?
      ... will need a beefy server HAL to handle all the remote ... >We are a travel agency with 14 workstations in our main ... >major location with 5 workstations also connecting to ... >(some in client offices and some at home) connecting ...
      (microsoft.public.windows.server.sbs)
    • Loopback when using PAP auth
      ... I was success connecting two machines, using a RAS machine for getting ... There is no problem if I use noauth option in server and client ...
      (comp.protocols.ppp)
    • Re: VNC and Pocket PC
      ... client, that is if the computer you're connecting to is windows xp pro. ... > When I try to connect using vncviewer or vncview (the two clients I ... > found) it will not connect to the server. ...
      (microsoft.public.pocketpc)