Linux Administration Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

SSH escape characters are an important additional element to note.

Occasionally, you can be connected to a system and your connection times out, locking up your session.

This usually manifests in the form of an unblinking and unresponsive Terminal. You generally can't hit Ctrl + D to log out, and can't type.

You would instead hit the following keys:

~.
While the key combination is officially listed as ~. it actually requires the Enter key being pressed first (as in, newline), so it's frequently written as \n~.

This tip is brought to you by an eagle-eyed technical editor!

That's a tilde character (find it on your keyboard, usually using the Shift key), followed by a dot.

Your session should immediately disconnect.

Check out the SSH manual page for more escape characters.