ssh port forwarding hangs when logout

Smoot Carl-Mitchell smoot at
Fri Nov 13 19:35:12 UTC 2009

On Tue, 2009-10-20 at 16:05 +0530, Manoj Singh wrote:
> Hi,
> 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.

If you are port forwarding and there is an active connection on the
forwarded port, then the SSH connection will wait until the active
connection closes.  This is normal and expected behavior.
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at
+1 480 922 7313
cell: +1 602 421 9005

More information about the ubuntu-users mailing list