{"id":154,"date":"2008-03-11T21:45:01","date_gmt":"2008-03-11T20:45:01","guid":{"rendered":"http:\/\/jerome.harckmans.be\/?p=154"},"modified":"2008-03-11T21:45:01","modified_gmt":"2008-03-11T20:45:01","slug":"quickdirty-keep-ssh-connections-alive","status":"publish","type":"post","link":"https:\/\/jerome.harckmans.be\/?p=154","title":{"rendered":"Quick&#038;Dirty: keep ssh connections alive"},"content":{"rendered":"<p>A irritating problem started to occur some weeks ago: my ssh connections dropped off after some minutes of inactivity. With security in mind, this is not such a bad thing, but since I didn&#8217;t change anything neither on the server side nor on the client side, I suspect my ISP of having change some DSL line parameters&#8230;<\/p>\n<p>Anyway, the following trick solved that issue; simply add the following line to your <strong><em>~\/.ssh\/config<\/em><\/strong> file (or create it if necessary):<\/p>\n<div class=coding>\nserveraliveinterval 60\n<\/div>\n<p>This will send a keepalive message to the server each 60 seconds. I found this solution particularly suitable for my needs as I didn&#8217;t need to change the config of all my servers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A irritating problem started to occur some weeks ago: my ssh connections dropped off after some minutes of inactivity. With security in mind, this is not such a bad thing,<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,8],"tags":[],"_links":{"self":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts\/154"}],"collection":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=154"}],"version-history":[{"count":0,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts\/154\/revisions"}],"wp:attachment":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}