$ [enter]~?

SSH can be controlled trough an ~ escape sequence. Example, to terminate the current ssh connection, type a newline, then the ~ character, and last a . character.

This is useful eg when an ssh connection hangs after you reboot a machine and the connection hangs.

View this command to comment, vote or add to favourites
View all commands by xeor

commandlinefu.com

by David Winterbottom (codeinthehole.com)


Tags: