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
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