Koozali.org: home of the SME Server

how to clode a ssh tunnel session?

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
how to clode a ssh tunnel session?
« on: April 26, 2005, 06:15:38 AM »
When establishing an ssh tunel in putty to access server-manager from a browser [via http://localhost:980], the tunnel closes when terminating the session in putty.  However, when establishing the same tunnel from a linux system using the command:
ssh -L 980:localhost:980 -C 192.168.0.10
one can still access http://localhost:980 even when the ssh session has been closed from the terminal.  

How to tell if a ssh tunnel is still up, and how to close the tunel? Many thnaks for any help.  chris.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

mbachmann

how to clode a ssh tunnel session?
« Reply #1 on: April 26, 2005, 02:59:43 PM »
For how long can you tunnel with the linux system after the ssh-terminal-session closes?

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
how to clode a ssh tunnel session?
« Reply #2 on: April 26, 2005, 03:35:28 PM »
I do not known, quite a while.  I will time it on my test box and let you know tomorrow.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

mbachmann

how to clode a ssh tunnel session?
« Reply #3 on: April 26, 2005, 03:45:04 PM »
Does this http://no.longer.valid/phpwiki/index.php/SecurityFAQ#ssh1  shed any light on this? Maybe a timeout problem?

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
how to clode a ssh tunnel session?
« Reply #4 on: April 26, 2005, 03:57:29 PM »
Thanks for passing this information.  Timeout occured at 600s, makes sense. I have also used the following command, but could not figure out what the sleep 100000 means:
ssh -L 980:localhost:980 -C 192.168.0.10 -f sleep 100000
- it is setting the timeout to 100000s, no wonder I was waiting for it to close...
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.