Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to exit Putty Terminal Window (under WinXP) WITH SSH tunnel in background? Starting only SSH tunnel?

2,408 views
Skip to first unread message

Camille Petersen

unread,
Jan 19, 2010, 9:21:17 AM1/19/10
to
Assume I created a Putty SSH Session WITH additional SSH tunnel/Port Forwarding in background.
It works fine.

However if I enter "exit" in the terminal window (under WinXP) then the terminal answers:

"Logout"

but the Putty window is NOT closed due to the still running SSH tunnel/Port Forwarding in background.

How can close the Putty SSH Terminal AND the background SSH tunnel with one command?

How can I start only an SSH tunnel with Putty WITHOUT a (visible) termianl window (I need only
the SSH tunnel).

Camille

Hans van Zijst

unread,
Jan 19, 2010, 10:22:49 AM1/19/10
to Camille Petersen
Camille,

Same behaviour as when I use OpenSSH under Linux to connect to a server
and use X-forwarding: closing the session server-side keeps the terminal
open.

It is my understanding that SSH remains active until its forwards have
been terminated. What I do is close the connection from the other side,
e.g. the client: I simply kill the ssh-client. In your case, it would
mean closing the PuTTY-windows.

I'm sure someone can come up with a neater solution, but this works. And
I have never seen any remnants of a severed forward...

Kind regards,

Hans

sasp...@gmail.com

unread,
Apr 2, 2015, 12:28:53 AM4/2/15
to
0 new messages