Jump to content
Sign in to follow this  
znx

SSH Break

Recommended Posts

Being very used to killing telnet connections with Ctrl+] (or ^]) then quit, I wanted a simpler method with SSH.

 

Basically what this is for is, lets say your remote shell has hung up on you. Normally what I would do is open another shell and kill the process. This is obviously a pain to keep doing.

 

A quick bit of googling and I found this:

http://www.theclonchs.com/wiki/SSHBreak

 

You can either edit the global ssh_config as the example in that URL says (/etc/ssh/ssh_config) or in the local user configuration (~/.ssh/config).

 

So to test that you have it working properly do:

mark@tone ~ % ssh localhost
Password: <password>
Last login: Fri Jul 20 15:45:45 2007 from localhost
mark@tone ~ % 
mark@tone ~ % Connection to localhost closed.

 

So I typed Enter ~. and it quit. No more hung ssh connections! YAY

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...