News for hackers. Stuff that matters.
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.
Re:What typing ^D does on Unix (2009) by grive on Tuesday September 06, 2016 @02:46PM (#12438285)
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.
Re:What typing ^D does on Unix (2009) by Canada on Tuesday September 06, 2016 @02:48PM (#12438302)
To kill the inner one you need to escape it: ~~. ~? displays the supported escape sequences.