6h0qvq
Last Updated: February 25, 2016
·
2.691K
· sheerun

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.

3 Responses
Add your response

6166

Nice one! Quick and easy, thanks

over 1 year ago ·
6186

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

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

over 1 year ago ·
Filed Under