6h0qvq
Last Updated: February 25, 2016
·
2.613K
· sheerun
Photo on 08.01.2013 at 04.15

Force SSH session exit

You're running SSH session (possibly nested), and it's not responding? Ctrl-D is not working? Just type following characters:

~.

Your SSH session will close immediately.

Say Thanks
Respond

3 Responses
Add your response

6166
10ca55864735b3ccefb16bd93a1596a7

Nice one! Quick and easy, thanks

over 1 year ago ·
6186
35c757f40f686b95f3023209fcf4fe5f

If you just don't want to exit to the prompt and type exit, there is neat shortcut to do that: Ctrl-D

over 1 year ago ·
6215
Photo on 08.01.2013 at 04.15

@eugeny It won't work if you run something that traps signal that Ctrl-D sends.

over 1 year ago ·
Filed Under