Escaping SSH session

If you find yourself trapped inside a SSH session that is hung, while SSH’d into another machine? I have, often actually. Sometimes I’m connected and reading up on something and when I come back my session has loss its connection while I was ssh’d into another machine. Here’s how you can back out to the other machine:

In the shell type: ~.

that’s a period at the end of the tilde. This will terminate your connection and bring you back to the shell you where SSH’d into prior to that.  

 

source:
http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node30.html

http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node30.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s