{"id":113,"date":"2016-05-13T08:20:17","date_gmt":"2016-05-13T08:20:17","guid":{"rendered":"http:\/\/www.scm.keele.ac.uk\/staff\/stan\/?p=113"},"modified":"2016-05-13T08:20:17","modified_gmt":"2016-05-13T08:20:17","slug":"closing-frozen-ssh","status":"publish","type":"post","link":"https:\/\/machinemachines.org\/index.php\/2016\/05\/13\/closing-frozen-ssh\/","title":{"rendered":"How can I close a frozen SSH session?"},"content":{"rendered":"<p>As previously posted by Infertux <a href=\"http:\/\/blog.infertux.com\/2012\/12\/20\/properly-close-a-frozen-ssh-session\/\" target=\"_blank\" rel=\"noopener\">here<\/a>, a frozen SSH session when moving between networks is a common annoyance for anyone who works on remote servers. Thankfully there&#8217;s a quick fix (and a whole set of interesting commands) of which I wasn&#8217;t previously aware. These SSH <em>escape sequences<\/em> allow you to control the SSH client and gracefully disconnect, rather than closing terminals or killing processes. The specific incantation is as follows:<br \/>\n<code><\/p>\n<ol>\n<li>[enter]<\/li>\n<li>~<\/li>\n<li>.<\/li>\n<\/ol>\n<p><\/code><br \/>\nAnd then <em>viola!<\/em> your SSH disconnects and you&#8217;re back to your local shell. <code>~?<\/code> will list the other escape sequences &#8211; see link above for more details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As previously posted by Infertux here, a frozen SSH session when moving between networks is a common annoyance for anyone who works on remote servers. Thankfully there&#8217;s a quick fix (and a whole set of interesting commands) of which I wasn&#8217;t previously aware. These SSH escape sequences allow you to control the SSH client and&hellip;&nbsp;<a href=\"https:\/\/machinemachines.org\/index.php\/2016\/05\/13\/closing-frozen-ssh\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">How can I close a frozen SSH session?<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","iawp_total_views":4,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"featured_image_src":null,"author_info":{"display_name":"as","author_link":"https:\/\/machinemachines.org\/index.php\/author\/stan\/"},"_links":{"self":[{"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:attachment":[{"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/machinemachines.org\/index.php\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}