{"id":956,"date":"2020-04-27T09:52:58","date_gmt":"2020-04-27T07:52:58","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=956"},"modified":"2020-04-27T09:52:58","modified_gmt":"2020-04-27T07:52:58","slug":"ssh-keep-alive","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=956","title":{"rendered":"SSH Keep Alive"},"content":{"rendered":"\n<p>Lot of times my ssh session get broken because I didn&#8217;t do anything for a while. Sometimes I have started &#8220;top&#8221; just that the connection does not get broken because of inactivity. But this is not really what I wanna do everytime. Luckily the SSH client can be configured to send alive telegrams for every session so that you do not need to pass arguments every time you open a SSH conneciton.<\/p>\n\n\n\n<p>Following settings will make the SSH client to send alive telegrams to the other side every\u00a0<strong>60 seconds<\/strong>, and give up if it doesn\u2019t receive any response after\u00a0<strong>2 tries<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">~\/.ssh\/config\nHost *\n    ServerAliveInterval 60\n    ServerAliveCountMax 2<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lot of times my ssh session get broken because I didn&#8217;t do anything for a while. Sometimes I have started &#8220;top&#8221; just that the connection does not get broken because of inactivity. But this is not really what I wanna do everytime. Luckily the SSH client can be configured to send alive telegrams for every &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=956\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SSH Keep Alive<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,12],"tags":[],"class_list":["post-956","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-linux"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=956"}],"version-history":[{"count":1,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/956\/revisions"}],"predecessor-version":[{"id":957,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/956\/revisions\/957"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}