Learn a little known feature of SSH known as escape sequences. These hidden sequences allow you to unstick a frozen terminal window, keep a remote SSH session open in the background, and more.
Instructor: [00:00] SSH supports a number of functions through the use of an escape character, which by default is a tilde. Escape sequences are created by using the escape character, followed by another character that comes from a list of supported sequences.
[00:15] One of the most common escape sequences is a tilde-period. Sometimes an SSH connection will become frozen or stuck. If you type tilde-period, it will automatically execute from the frozen terminal window.
[00:29] Another popular escape sequence is a tilde-control-z. Say you wish to keep an SSH connection open, but you don't want to occupy a terminal window. You can issue a tilde-control-z, and that will send the SSH session into the background. When it comes time for you to reconnect to the open SSH connection, type fg enter.