| « Slashdot (useful) stupid unix tricks #2 - Reset your shell | I'm famous! » |
Link: http://ask.slashdot.org/comments.pl?cid=25667315&sid=1019609
Here's an old trick carried over to SSH from the olden days of rsh.
You've got an ssh session open, and for some reason your terminal isn't responding to you anymore. Maybe you've rebooted the host and it didn't kick you out first or any number of other things. It doesn't matter. You need your terminal back.
Simply hit <enter> ~ . and you're back in business. A lot of documents describe using <enter> <enter> <enter> ~ . but that's just to make sure your session is really not responding before forcing the disconnect. Good practice, but not required.