{"id":28962,"date":"2018-10-26T06:52:16","date_gmt":"2018-10-26T11:52:16","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=28962"},"modified":"2022-12-14T06:52:04","modified_gmt":"2022-12-14T12:52:04","slug":"how-to-recover-from-an-accidental-ssh-disconnection-on-linux","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/","title":{"rendered":"How to Recover from an Accidental SSH Disconnection on Linux"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure id=\"attachment_28970\" aria-describedby=\"caption-attachment-28970\" style=\"width: 732px\" class=\"wp-caption alignnone\"><img decoding=\"async\" class=\"size-full wp-image-28970\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg\" alt=\"How to Recover from an Accidental SSH Disconnection on Linux\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><figcaption id=\"caption-attachment-28970\" class=\"wp-caption-text\">How to Recover from an Accidental SSH Disconnection on Linux<\/figcaption><\/figure>\n<p><span style=\"font-weight: 400;\">SSH remains the most common way by which we access our Linux servers. Most people don&#8217;t manually log into the server console itself. Through SSH, you can do almost everything except for certain low-level operations. However, this leaves us open to the possibility of disconnection. It might be unexpected but is a very real possibility. A sudden fluctuation on the Internet, a power surge, and your SSH session are immediately terminated.<\/span><span style=\"font-weight: 400;\"> Along with that, any processes that might have been running are typically terminated as well. Not just the ones active, but all the\u00a0<\/span><a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-run-commands-simultaneously-in-linux\/\"><span style=\"font-weight: 400;\">background processes as well<\/span><\/a><span style=\"font-weight: 400;\">. If you were doing something important that shouldn&#8217;t be interrupted in the middle &#8211; like a complex installation, this can completely mess up your system.<\/span><!--more--><\/p>\n<p><span style=\"font-weight: 400;\">In this article, we&#8217;ll show you how to recover from an accidental disconnection on SSH.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In a previous article, we&#8217;d shown you <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-multi-task-in-linux-with-the-command-line\/\">how to install and use the &#8220;screen&#8221; package for Linux<\/a><\/span><span style=\"font-weight: 400;\">. While that was for demonstrating how to multi-task on Linux, you can also use the screen to preserve your SSH sessions. It&#8217;s a fantastic benefit and one that propels screen to the top of any &#8220;must-have&#8221; utilities to use on your Linux server.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In the screenshot below, I&#8217;ve initiated a process to sleep for 30 minutes and pushed it into the background:<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28963\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/New-Process.jpg\" alt=\"New Process\" width=\"650\" height=\"249\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/New-Process.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/New-Process-150x57.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/New-Process-300x115.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now I just close my SSH session. I don&#8217;t exit gracefully or anything. I just press the &#8220;X&#8221; at the top of the Window. When I log in again, my process has vanished. It no longer exists and was killed as soon as I closed SSH:<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28964\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Previous-Process-is-No-Longer-Running.jpg\" alt=\"Previous Process is No Longer Running\" width=\"650\" height=\"226\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Previous-Process-is-No-Longer-Running.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Previous-Process-is-No-Longer-Running-150x52.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Previous-Process-is-No-Longer-Running-300x104.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now let&#8217;s try the same thing with screen activated. In the screenshot below, I run the <\/span><i><span style=\"font-weight: 400;\">same<\/span><\/i><span style=\"font-weight: 400;\"> command, but this time inside a &#8220;screen&#8221; as shown here:<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28965\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Run-Command-in-Background-with-Screen.jpg\" alt=\"Run Command in Background with Screen\" width=\"650\" height=\"225\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Run-Command-in-Background-with-Screen.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Run-Command-in-Background-with-Screen-150x52.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Run-Command-in-Background-with-Screen-300x104.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">This is a new screen session, within screen &#8220;0&#8221;. Now when I close SSH and come back, I can get a list of all previous screens using the command:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">screen -ls<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">And this gives me the output as shown here:<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28966\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Previous-Screen-Session-is-Preserved.jpg\" alt=\"Previous Screen Session is Preserved\" width=\"650\" height=\"283\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Previous-Screen-Session-is-Preserved.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Previous-Screen-Session-is-Preserved-150x65.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Previous-Screen-Session-is-Preserved-300x131.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">As you can see, there is a screen session here with the name:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">pts-0.test-centos-server<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To reconnect to it, just type:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">screen -r<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">And this will take you back to where you were before the SSH connection was terminated! It&#8217;s an amazing tool that you <\/span><i><span style=\"font-weight: 400;\">need<\/span><\/i><span style=\"font-weight: 400;\"> to use for all important operations as insurance against accidental terminations.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Manually Detaching Screens<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When you break an SSH session, what actually happens is that the screen is automatically <\/span><i><span style=\"font-weight: 400;\">detached<\/span><\/i><span style=\"font-weight: 400;\"> from it and exists independently. While this is great, you can also detach screens <\/span><i><span style=\"font-weight: 400;\">manually<\/span><\/i><span style=\"font-weight: 400;\"> and have multiple screens existing at the same time.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example, to detach a screen just type:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">screen -d<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">And the current screen will be detached and preserved. However, all the processes inside it are still running, and all the states are preserved:<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28967\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Manually-Detaching-Screens.jpg\" alt=\"Manually Detaching Screens\" width=\"650\" height=\"214\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Manually-Detaching-Screens.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Manually-Detaching-Screens-150x49.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Manually-Detaching-Screens-300x99.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You can re-attach to a screen at any time using the &#8220;screen -r&#8221; command. To connect to a specific screen instead of the most recent, use:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">screen -r <\/span><i><span style=\"font-weight: 400;\">[screenname]<\/span><\/i><\/pre>\n<h2><span style=\"font-weight: 400;\">Changing the Screen Names to Make Them More Relevant<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">By default, the screen names don&#8217;t mean much. And when you have a bunch of them present, you won&#8217;t know which screens contain which processes. Fortunately, renaming a screen is easy when inside one. Just type:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">ctrl+a :<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We saw in the previous article that &#8220;ctrl+a&#8221; is the trigger condition for screen commands. The colon (:) will take you to the bottom of the screen where you can type commands. To rename, use:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">sessionname <\/span><i><span style=\"font-weight: 400;\">[newscreenname]<\/span><\/i><\/pre>\n<p><span style=\"font-weight: 400;\">As shown here:<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28968\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Change-the-Session-Name.jpg\" alt=\"Change the Session Name\" width=\"650\" height=\"453\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Change-the-Session-Name.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Change-the-Session-Name-150x105.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Change-the-Session-Name-300x209.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">And now when you detach the screen, it will show with the new name like this:<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28969\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/New-Session-Name-Created.jpg\" alt=\"New Session Name Created\" width=\"650\" height=\"260\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/New-Session-Name-Created.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/New-Session-Name-Created-150x60.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/New-Session-Name-Created-300x120.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now you can have as many screens as you want without getting confused about which one is which!<\/span><\/p>\n<hr \/>\n<p>If you are one of our <a href=\"https:\/\/www.rosehosting.com\">Managed VPS hosting<\/a> clients, we can do all of this for you. Simply contact our system administrators and they will respond to your request as soon as possible.<\/p>\n<p>If you liked this blog post on how to recover from an accidental SSH disconnection on Linux, please share it with your friends on social media networks, or if you have any question regarding this blog post, simply leave a comment below and we will answer it. Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSH remains the most common way by which we access our Linux servers. Most people don&#8217;t manually log into the &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Recover from an Accidental SSH Disconnection on Linux\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#more-28962\" aria-label=\"Read more about How to Recover from an Accidental SSH Disconnection on Linux\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28970,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1703,13],"tags":[1765,68],"class_list":["post-28962","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-tutorials","tag-discconect","tag-ssh","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Recover from an Accidental SSH Disconnection on Linux\" \/>\n<meta property=\"og:description\" content=\"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-26T11:52:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-14T12:52:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Recover from an Accidental SSH Disconnection on Linux\",\"datePublished\":\"2018-10-26T11:52:16+00:00\",\"dateModified\":\"2022-12-14T12:52:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/\"},\"wordCount\":721,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg\",\"keywords\":[\"discconect\",\"ssh\"],\"articleSection\":[\"Security\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/\",\"name\":\"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg\",\"datePublished\":\"2018-10-26T11:52:16+00:00\",\"dateModified\":\"2022-12-14T12:52:04+00:00\",\"description\":\"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Recover from an Accidental SSH Disconnection on Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Recover from an Accidental SSH Disconnection on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting","description":"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Recover from an Accidental SSH Disconnection on Linux","og_description":"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-10-26T11:52:16+00:00","article_modified_time":"2022-12-14T12:52:04+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Recover from an Accidental SSH Disconnection on Linux","datePublished":"2018-10-26T11:52:16+00:00","dateModified":"2022-12-14T12:52:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/"},"wordCount":721,"commentCount":3,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg","keywords":["discconect","ssh"],"articleSection":["Security","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/","name":"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg","datePublished":"2018-10-26T11:52:16+00:00","dateModified":"2022-12-14T12:52:04+00:00","description":"How to Recover from an Accidental SSH Disconnection on Linux | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-Recover-from-an-Accidental-SSH-Disconnection-on-Linux.jpg","width":742,"height":372,"caption":"How to Recover from an Accidental SSH Disconnection on Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-recover-from-an-accidental-ssh-disconnection-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Recover from an Accidental SSH Disconnection on Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=28962"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28962\/revisions"}],"predecessor-version":[{"id":44265,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28962\/revisions\/44265"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/28970"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=28962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=28962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=28962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}