{"id":3562,"date":"2026-09-24T11:25:38","date_gmt":"2026-09-24T09:25:38","guid":{"rendered":"http:\/\/calculs.univ-cotedazur.fr\/?page_id=3562"},"modified":"2026-09-24T17:04:13","modified_gmt":"2026-09-24T15:04:13","slug":"utilisation-de-vs-code","status":"publish","type":"page","link":"https:\/\/calculs.univ-cotedazur.fr\/?page_id=3562","title":{"rendered":"Utilisation de VS Code"},"content":{"rendered":"\n<p>Afin de ne pas surcharger la machine frontale (login-hpc), il est demand\u00e9 aux utilisateurs de se connecter sur un noeud de calcul.<\/p>\n\n\n\n<h4>Lancer une session interactive sur un n\u0153ud de calcul <\/h4>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/calculs.univ-cotedazur.fr\/?page_id=109#En_mode_interactif\" target=\"_blank\">Voir cette page.<\/a><\/p>\n\n\n\n<p>Puis entrez la commande <strong>hostname<\/strong> qui vous renvoie le nom de la machine sur laquelle vous \u00eates connect\u00e9(e).<\/p>\n\n\n\n<h4>\u00c9ditez votre configuration locale<\/h4>\n\n\n\n<p>\u00c9ditez votre fichier <code>~\/.ssh\/config<\/code> en local, ajoutez :<\/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>Remplacez <code>username<\/code> par votre nom d&rsquo;utilisateur Azzurra. Cette action n&rsquo;est \u00e0 r\u00e9aliser que la premi\u00e8re fois.<\/p>\n\n\n\n<h4>Lancer la connexion sur VS Code<\/h4>\n\n\n\n<p>Sur VS Code : Touche <code>F1<\/code> > <code>Remote-SSH: Connect to Host...<\/code> > <code>Entrez le nom du noeud sur lequel la session interactive Slurm s'est ouverte (obtenu avec la commande hostname). Par exemple : compute02<\/code><\/p>\n\n\n\n<p>Si VS Code demande l&rsquo;OS de la machine distante, choisissez Linux. Si on vous demande d&rsquo;accepter la fingerprint, choisissez yes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Afin de ne pas surcharger la machine frontale (login-hpc), il est demand\u00e9 aux utilisateurs de se connecter sur un noeud de calcul. Lancer une session interactive sur un n\u0153ud de calcul Voir cette page. Puis entrez la commande hostname qui &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":140,"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\/3562"}],"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=3562"}],"version-history":[{"count":4,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/3562\/revisions"}],"predecessor-version":[{"id":3593,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/3562\/revisions\/3593"}],"up":[{"embeddable":true,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/140"}],"wp:attachment":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}