{"id":1295,"date":"2020-06-22T09:53:02","date_gmt":"2020-06-22T13:53:02","guid":{"rendered":"https:\/\/labs.icahn.mssm.edu\/minervalab\/?p=1295"},"modified":"2021-07-01T12:19:51","modified_gmt":"2021-07-01T16:19:51","slug":"ssh-connection-to-minerva-while-using-vpn","status":"publish","type":"post","link":"https:\/\/labs.icahn.mssm.edu\/minervalab\/ssh-connection-to-minerva-while-using-vpn\/","title":{"rendered":"SSH connection to Minerva while using VPN"},"content":{"rendered":"<p>If you use VPN to connect to Minerva and experience a frequent drop of your ssh connections,\u00a0 you may use following ssh configurations to keep your ssh session alive:<\/p>\n<p><a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/accessing-your-account\/keeping-ssh-connections-alive\">https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/accessing-your-account\/keeping-ssh-connections-alive<\/a><\/p>\n<p><span style=\"color: #221f72\">On your own computer (not Minerva), edit the ~\/.ssh\/config file:<\/span><\/p>\n<p><span style=\"color: #221f72\">Host minerva<\/span><br \/>\n<span style=\"color: #221f72\">Hostname minerva.hpc.mssm.edu<\/span><br \/>\n<span style=\"color: #221f72\">ServerAliveInterval 240<\/span><br \/>\n<span style=\"color: #221f72\">ServerAliveCountMax 2<\/span><\/p>\n<p>With this configuration, the SSH client sends a packet to the server every 240 seconds (4 minutes) to keep the connection alive. If the client does not receive a response after two tries (as specified by the ServerAliveCountMax setting), it closes the connection.<\/p>\n<p>We also recommend you use a screen session or tmux so that you can return to your work after the drop of the connection.<\/p>\n<p><span style=\"color: #ff0000\"><strong>Warning:<\/strong><\/span> When you use VPN, data transfer from Minerva to your own computer will be extremely slow and it will also cause network congestions for other users. We recommend you use globus for this situation which bypasses the VPN.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you use VPN to connect to Minerva and experience a frequent drop of your ssh connections,\u00a0 you may use following ssh configurations to keep your ssh session alive: https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/accessing-your-account\/keeping-ssh-connections-alive On your own computer (not Minerva), edit the ~\/.ssh\/config file: Host minerva Hostname minerva.hpc.mssm.edu ServerAliveInterval 240 ServerAliveCountMax 2 With this configuration, the SSH client sends [&hellip;]<\/p>\n","protected":false},"author":146,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1295","post","type-post","status-publish","format-standard","hentry","category-research-services"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/posts\/1295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/users\/146"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/comments?post=1295"}],"version-history":[{"count":11,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/posts\/1295\/revisions"}],"predecessor-version":[{"id":1306,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/posts\/1295\/revisions\/1306"}],"wp:attachment":[{"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/media?parent=1295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/categories?post=1295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.icahn.mssm.edu\/minervalab\/wp-json\/wp\/v2\/tags?post=1295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}