One ssh hangs on exit, the other doesn't

Matthew Dillon dillon at
Thu Dec 5 20:17:30 PST 2019

ssh won't exit unless all virtual links, such as the X forwarding, are also
gone.  I think there are some bugs related to that (I'm pretty sure it
isn't dragonfly specific).  So running with X forwarding can cause the
situation you describe.


On Thu, Dec 5, 2019 at 12:15 PM Steffen Nurpmeso <steffen at> wrote:

> Pierre Abbat wrote in <12216388.yjY6BSWRI4 at mooncat>:
>  |On Thursday, 5 December 2019 03.48.18 EST Harald Brinkhof wrote:
>  |> Maybe some background processes keep running and prevent the X program
> \
>  |> from
>  |> sitting down?
>  |>
>  |>
>  |
>  |The examples at the top of that page don't make sense. If I start an \
>  |xterm in
>  |an ssh session, and log out of the ssh session with the xterm still \
>  |running, I
>  |expect ssh to keep running until I close the xterm. When I ssh into \
>  |leopard,
>  |my local mail server, and forward the mail ports, the ssh session hangs
> on
>  |exit, because kmail still has the mail ports open.
>  |
>  |When I shelled into zyxomma, I exited each program before logging out \
>  |of ssh.
>  |I don't understand why one ssh session closed and the other hung.
> Does it still hang when ControlMaster exits?
> I have seen this on Linux->Linux (same host even) with
> X forwarding in muxer sessions, but it went away as rolling
> updates flew by.  (At the moment i have
>   Load key "/home/steffen/": invalid format
> that that makes no sense :})
>  |Pierre
>  |--
>  |loi mintu se ckaji danlu cu jmaji
>  --End of <12216388.yjY6BSWRI4 at mooncat>
> --steffen
> |
> |Der Kragenbaer,                The moon bear,
> |der holt sich munter           he cheerfully and one by one
> |einen nach dem anderen runter  wa.ks himself off
> |(By Robert Gernhardt)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Users mailing list