{"id":3565,"date":"2026-09-24T11:29:18","date_gmt":"2026-09-24T09:29:18","guid":{"rendered":"http:\/\/calculs.univ-cotedazur.fr\/?page_id=3565"},"modified":"2026-09-24T17:14:46","modified_gmt":"2026-09-24T15:14:46","slug":"using-vs-code","status":"publish","type":"page","link":"https:\/\/calculs.univ-cotedazur.fr\/?page_id=3565&lang=en","title":{"rendered":"Using VS Code"},"content":{"rendered":"\n<p>In order to avoid overloading the login node (login-hpc), users are required to connect to a compute node. <\/p>\n\n\n\n<h4>Launch an interactive session on a compute node <\/h4>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/calculs.univ-cotedazur.fr\/?page_id=564&amp;lang=en#Interactive_mode\" target=\"_blank\">See this page. <\/a><\/p>\n\n\n\n<p>Then run the <strong>hostname<\/strong> command which will print the node name that you are using.<\/p>\n\n\n\n<h4><strong>Edit your local configuration<\/strong> <\/h4>\n\n\n\n<p>Edit your local <code>~\/.ssh\/config<\/code> file and add:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Host compute* gpu*\n    ProxyJump username@login-hpc.univ-cotedazur.fr\n    User username\n<\/code><\/pre>\n\n\n\n<p>Replace <code>username<\/code> with your Azzurra username. This has to be done only once, before your first connection.<\/p>\n\n\n\n<h4><strong>Start the connection in VS Code<\/strong><\/h4>\n\n\n\n<p>In VS Code: Press <code>F1<\/code> &gt; <code>Remote-SSH: Connect to Host...<\/code> &gt; <code>enter the node name that was assigned to you by Slurm when opening your interactive session (the output of the hostname command)<\/code>. Example: compute02<\/p>\n\n\n\n<p>If VS code asks the OS of the remote machine, select Linux. If you are asked to agree about a fingerprint, select yes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to avoid overloading the login node (login-hpc), users are required to connect to a compute node. Launch an interactive session on a compute node See this page. Then run the hostname command which will print the node name &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":580,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/3565"}],"collection":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3565"}],"version-history":[{"count":6,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/3565\/revisions"}],"predecessor-version":[{"id":3595,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/3565\/revisions\/3595"}],"up":[{"embeddable":true,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/580"}],"wp:attachment":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}