{"id":285,"date":"2017-01-07T09:42:46","date_gmt":"2017-01-07T09:42:46","guid":{"rendered":"https:\/\/doublelayer.eu\/vilab\/?p=285"},"modified":"2022-10-07T07:52:31","modified_gmt":"2022-10-07T07:52:31","slug":"working-abroad","status":"publish","type":"post","link":"https:\/\/doublelayer.eu\/vilab\/2017\/01\/07\/working-abroad\/","title":{"rendered":"Working abroad"},"content":{"rendered":"<p>Sometimes for some reason some VPN might not work as one expects. Then one can login to a node with a key.<\/p>\n<p>First, check if you have a public key already. On\u00a0your own computer in a terminal run:<\/p>\n<blockquote><p><b>cat ~\/.<span class=\"il\">ssh<\/span>\/id_rsa.pub<\/b><\/p><\/blockquote>\n<p>If this command worked, then skip the next step. If an error appeared, run this:<\/p>\n<blockquote><p><b><span class=\"il\">ssh<\/span>-keygen<\/b><\/p><\/blockquote>\n<p>It will ask for a password. This is the password you give to the key. You can make one without password, in which case it will not ask for a password each time you try to use it.<\/p>\n<p>You must have\u00a0an\u00a0access to the cluster somehow to run the following command:<\/p>\n<blockquote><p><b><span class=\"il\">ssh<\/span>-copy-id -i ~\/.ssh\/id_rsa.pub &lt;your-username&gt;@cluster-address<\/b><\/p><\/blockquote>\n<p>Well, you can also just copy the string from id_rsa.pub on your machine to the id_rsa.pub on your cluster.<\/p>\n<p>This trick does not work for all machines. So, you might use the established connection to connect to other machines. In my case I wanted to work with some notebooks, so I did:<\/p>\n<blockquote><p><strong>ssh -N -L localhost:PORT1:localhost:PORT2 &lt;your-username&gt;@cluster-address<\/strong><\/p><\/blockquote>\n<p>and so it worked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes for some reason some VPN might not work as one expects. Then one can login to a node with a key. First, check if you have a public key already. On\u00a0your own computer in a terminal run: cat ~\/.ssh\/id_rsa.pub If this command worked, then skip the next step. If an error appeared, run this:&hellip; <a class=\"read-more\" href=\"https:\/\/doublelayer.eu\/vilab\/2017\/01\/07\/working-abroad\/\">Read More<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[31],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-know-how","tag-hpc"],"_links":{"self":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":4,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":672,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/285\/revisions\/672"}],"wp:attachment":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}