Useful thing I found today. To kill an ssh session that is hung (host down, network outage, etc… while ssh connected), just hit the enter key and type ~.

found at: serverfault.com

Also, to end a telnet session, you do CTRL-] and type quit.

found at: chipkin.com