Connection to mymachine.org closed by remote host - sshd timeout

From: Alain Star (200410+news_at_pobox.com)
Date: 10/27/04

  • Next message: h.wulff: "Re: Mount ssh in Windows as a Device"
    Date: Wed, 27 Oct 2004 14:36:23 +0200
    
    

    Hello.

    I have a script running on the machine A establishing a remote ssh tunnel
    with machine B.
    It allows me, once logged on machine B to ssh machine A on port 2222 ( ssh
    A -p 2222 )
    The script is:

    ---
    #!/bin/sh
    while ( test 1 ) ;
    do ssh -v -g -R 2222:localhost:22 -N myname@mymachine.mydomain.org -p 443 ;
       echo "Waiting 1 minute to restart." ;
       sleep 60 ;
    done
    ---
    More or less, every 30 minutes, the tunnel goes down with the following
    message:
    ---
    Connection to mymachine.mydomain.org closed by remote host.
    debug1: Transferred: stdin 0, stdout 0, stderr 56 bytes in 1820.5 seconds
    debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
    debug1: Exit status -1
    ---
    I am running Fedora Core 2
    Is there any kind of default timeout in the sshd?
    Thanks for your help.
    AS - mailto: 200410+news@pobox.com
    

  • Next message: h.wulff: "Re: Mount ssh in Windows as a Device"

    Relevant Pages

    • Expect problems with SSH & Connect.c combo
      ... I've managed to get an Expect script running that signs into a host via ... with SSH and connect.c. ... parent: ... parent: now unsynchronized from child ...
      (comp.lang.tcl)
    • Re: Apple OS X, cant get access to files with Linux
      ... The script running on the Linux box that wants to get the ... Passwordless SSH is no different when the users differ. ... keys on Linux and import the public key into authorized_keys in the Mac ...
      (uk.comp.os.linux)
    • Re: Expect problems with SSH & Connect.c combo
      ... >I've managed to get an Expect script running that signs into a host via ... >SSH. ... I've run into a wall, however, with trying to get through a proxy ...
      (comp.lang.tcl)