Connection to closed by remote host - sshd timeout

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


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:

while ( test 1 ) ;
do ssh -v -g -R 2222:localhost:22 -N -p 443 ;
   echo "Waiting 1 minute to restart." ;
   sleep 60 ;

More or less, every 30 minutes, the tunnel goes down with the following

Connection to 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:

Site Timeline