ssh port forwarding hangs when logout

Markus Schönhaber ubuntu-users at list-post.mks-mail.de
Tue Oct 20 12:08:07 UTC 2009


Manoj Singh:

> I am using ssh to connect to my ubuntu web server. Also I am using port
> forwarding to access the webmin panel of the server from the local machine.
> But it seems that most of the times when I am connecting through ssh using
> port forwarding and then upon exit ssh hangs on logout. I have to manually
> press "Ctrl + C" to terminate the connection.
> 
> Please let me know your thoughts on this as what might be the problem
> causing this?

My guess would be that most likely the forwarded port is still in use
(or at least the app on the client side hasn't yet noticed that the
connection was terminated).
netstat -tpn
on the server and the client side should give you an idea if that really
is the case.

-- 
Regards
  mks




More information about the ubuntu-users mailing list