Re:What typing ^D does on Unix (2009)
by ChuckMcM on Tuesday September 06, 2016 @02:40PM
(#12438254)
Sadly it will shutdown only the 'outer' ssh session, so if you ssh to foo, and then from foo ssh to bar, and type ~. then the client->foo session is shut down but the foo->bar session is still around.
[ Parent
| on HN ]
You need to type one ~ per session level toy want to reach and terminate. In your example, type ~~. to terminate the inner session, leaving the outer one live.