How To Quickly Unfreeze An SSH Session
If you're anything like me, you will infrequently find yourself in silly situations whereby you have locked up your remote SSH session.
You know the situation - everything looks fine, but no matter what you press, nothing happens.
The quickest fix for this is to simply close the terminal and start again. However, that may well mean losing valuable bits of history, and other such unpleasentness.
A better solution to this problem is to use the keyboard shortcut of Return then ~ then ..
If all goes well, you should be kicked out of your session and returned to your local shell.
Not quite saving the day, but better than nothing. And also perfect for situations where you pause or shutdown a running VM - which I seem to do too frequently!