3:I[9275,[],""] 5:I[1343,[],""] 6:I[6943,["231","static/chunks/231-0ebe1b01337998d1.js","185","static/chunks/app/layout-bc0ec78271664fe5.js"],"default"] 7:I[231,["231","static/chunks/231-0ebe1b01337998d1.js","736","static/chunks/app/share/page-45aeae61600926ef.js"],""] 4:["postSlug","scitas","c"] 0:["oIJriAy1FGyHgslD7XrWc",[[["",{"children":["share",{"children":[["postSlug","scitas","c"],{"children":["__PAGE__?{\"postSlug\":[\"scitas\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["share",{"children":[["postSlug","scitas","c"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","share","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","share","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","div",null,{"className":"error-page","children":[["$","h1",null,{"children":"Page Not Found"}],["$","p",null,{"children":"Sorry, the page you are looking for does not exist."}],["$","span",null,{"className":"error-number","children":"404"}],["$","div",null,{"className":"error-buttons","children":[["$","$L7",null,{"className":"button","href":"/","children":"Back Home"}],["$","$L7",null,{"className":"button","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/SidonieBouthors/sidonie.me-v2/issues/new?assignees=SidonieBouthors&labels=broken-link&projects=&template=broken-link.md&title=%5BBroken+Link%5D+","children":"Report Issue"}]]}]]}],"notFoundStyles":[],"styles":null}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/88e17bac62ebbfcf.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] 2:["$","div",null,{"className":"post-page","children":[["$","nav",null,{"className":"breadcrumb","children":["$","ol",null,{"children":[["$","li","/share",{"children":["$","$L7",null,{"href":"/share","children":"Share"}]}],["$","li",null,{"children":"SCITAS"}]]}]}],["$","p",null,{"className":"updated","children":["Last updated on"," ",["$","time",null,{"dateTime":"2024-03-19","children":"Tuesday, March 19, 2024"}]]}],[["$","input",null,{"type":"checkbox","id":"toc-toggle"}],["$","label",null,{"htmlFor":"toc-toggle","className":"toc-label","children":["$","span",null,{"children":"Table of Contents"}]}]],[["$","nav",null,{"className":"toc","children":["$","ol",null,{"className":"toc-level toc-level-1","children":[["$","li",null,{"className":"toc-item toc-item-h2","children":["$","a",null,{"className":"toc-link toc-link-h2","href":"#script","children":"Script"}]}],["$","li",null,{"className":"toc-item toc-item-h2","children":["$","a",null,{"className":"toc-link toc-link-h2","href":"#setup","children":"Setup"}]}],["$","li",null,{"className":"toc-item toc-item-h2","children":["$","a",null,{"className":"toc-link toc-link-h2","href":"#running-a-job","children":"Running a Job"}]}],["$","li",null,{"className":"toc-item toc-item-h2","children":["$","a",null,{"className":"toc-link toc-link-h2","href":"#cancelling-a-job","children":"Cancelling a Job"}]}],["$","li",null,{"className":"toc-item toc-item-h2","children":["$","a",null,{"className":"toc-link toc-link-h2","href":"#more-advanced-script","children":"More Advanced Script"}]}],["$","li",null,{"className":"toc-item toc-item-h2","children":[["$","a",null,{"className":"toc-link toc-link-h2","href":"#ssh-with-vs-code","children":"SSH with VS Code"}],["$","ol",null,{"className":"toc-level toc-level-2","children":[["$","li",null,{"className":"toc-item toc-item-h3","children":["$","a",null,{"className":"toc-link toc-link-h3","href":"#setting-up-a-remote-host","children":"Setting up a Remote Host"}]}],["$","li",null,{"className":"toc-item toc-item-h3","children":["$","a",null,{"className":"toc-link toc-link-h3","href":"#connecting-through-vs-code","children":"Connecting through VS Code"}]}],["$","li",null,{"className":"toc-item toc-item-h3","children":["$","a",null,{"className":"toc-link toc-link-h3","href":"#adding-an-ssh-key","children":"Adding an SSH Key"}]}]]}]]}]]}]}],["$","h1",null,{"id":"using-scitas-to-run-jobs","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#using-scitas-to-run-jobs","children":"Using SCITAS to run jobs"}]}],"\n",["$","div",null,{"className":"callout note","children":["$","p",null,{"children":"Username and passwords are all your GASPAR login info"}]}],"\n",["$","h2",null,{"id":"script","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#script","children":"Script"}]}],"\n",["$","p",null,{"children":["Download the ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"execute.sh"}]}]}]}]," file from Moodle into your assignment directory"]}],"\n",["$","p",null,{"children":"Modify the following"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":[["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":[["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#!/bin/bash"}]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#SBATCH --chdir /scratch/"}],["$","mark",null,{"data-highlighted-chars":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":""}]}]]}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#SBATCH --nodes 1"}]}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#SBATCH --ntasks 1"}]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#SBATCH --cpus-per-task "}],["$","mark",null,{"data-highlighted-chars":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"1"}]}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#SBATCH --mem "}],["$","mark",null,{"data-highlighted-chars":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"1G"}]}]]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":"echo"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" STARTING"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" AT"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" `"}],["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"date"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"`"}]]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":["$","mark",null,{"data-highlighted-chars-mark":"","data-highlighted-chars":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":"<"}],["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"commands"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":">"}]]}]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":"echo"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" FINISHED"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" at"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" `"}],["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"date"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"`"}]]}]]}]}],["$","figcaption",null,{"data-rehype-pretty-code-caption":"","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":"execute.sh"}]]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":"Username : your GASPAR username"}],"\n",["$","li",null,{"children":"CPUs per Task : the number of CPUs used to run each command"}],"\n",["$","li",null,{"children":"Memory : If you need a larger amount of RAM to execute your script, specify how much memory you need here."}],"\n",["$","li",null,{"children":["Commands : You can put here any commands you wish to run on SCITAS, such as ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"./pi 1 100000000"}]}]}]}],". They will be executed one after the other."]}],"\n"]}],"\n",["$","div",null,{"className":"callout tip","children":[["$","p",null,{"children":["You can put ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"%u"}]}]}]}]," instead of your username so that your script can be used easily by anyone."]}],["$","p",null,{"children":["Check out the ",["$","a",null,{"href":"#more-advanced-script","children":"More Advanced Script"}]," section for more optimizations!"]}]]}],"\n",["$","h2",null,{"id":"setup","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#setup","children":"Setup"}]}],"\n",["$","p",null,{"children":"Copy all your files into SCITAS:"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"scp"}],["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":" -r"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":" <"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"assignment"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" pat"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"h"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":" <"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"usernam"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"e"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"@helvetios.hpc.epfl.ch:~/"}]]}]}]}]}],"\n",["$","div",null,{"className":"callout error content-only","children":["$","details",null,{"children":[["$","summary",null,{"children":["$","span",null,{"children":"troubleshoot"}]}],["$","article",null,{"className":"details-content","children":["$","p",null,{"children":["If you get an error message such as ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"path canonicalization failed"}]}]}]}]," you can\ntry adding the ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"-O"}]}]}]}]," flag after the ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"-r"}]}]}]}]]}]}]]}]}],"\n",["$","p",null,{"children":"SSH into SCITAS:"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"ssh"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":" <"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"usernam"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"e"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"@helvetios.hpc.epfl.ch"}]]}]}]}]}],"\n",["$","p",null,{"children":["Use ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"ls"}]}]}]}]," & ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"cd"}]}]}]}]," to navigate into your assignment directory in SCITAS"]}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":[["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"make"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" clean"}]]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"make"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" all"}]]}]]}]}]}],"\n",["$","p",null,{"children":["Remove files in scratch (if you've already run some SCITAS jobs before and want to delete old output files before continuing)",["$","strong",null,{"children":":"}]]}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"rm"}],["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":" -r"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" /scratch/"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":"<"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"usernam"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"e"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"/"}],["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":"*"}]]}]}]}]}],"\n",["$","p",null,{"children":"Copy executables into scratch:"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"cp"}],["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":" --"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" !"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"("}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":"*"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"."}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":"*|"}],["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"Makefile"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":") "}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"/scratch/"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":"<"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"usernam"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"e"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"/"}]]}]}]}]}],"\n",["$","div",null,{"className":"callout note","children":[["$","p",null,{"children":"There are two important directories in SCITAS :"}],["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"/home/"}]}]}]}]," : this is where you are located when you SSH into SCITAS and where you copy your assignment directory"]}],"\n",["$","li",null,{"children":[["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"/scratch/"}]}]}]}]," : this is where your script is executed and where the output files appear"]}],"\n"]}]]}],"\n",["$","h2",null,{"id":"running-a-job","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#running-a-job","children":"Running a Job"}]}],"\n",["$","p",null,{"children":["Execute job (use ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"execute-reservation.sh"}]}]}]}]," if needed):"]}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"sbatch"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" execute.sh"}]]}]}]}]}],"\n",["$","p",null,{"children":["Check if job is done (if there is a ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"slurm-.out"}]}]}]}]," file here):"]}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"ls"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" /scratch/"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":"<"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"usernam"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"e"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"/"}]]}]}]}]}],"\n",["$","p",null,{"children":"Check if job is in queue (if your job is stuck in queue - search in list with job number to find it):"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"squeue"}]}]}]}]}],"\n",["$","p",null,{"children":"Go into job output (you can write only the first part of the command and tab, it will fill in the number if it's the only job output):"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"cat"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" /scratch/"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":"<"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"usernam"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"e"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"/slurm-"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":"<"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"job"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" numbe"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"r"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":".out"}]]}]}]}]}],"\n",["$","div",null,{"className":"callout warning","children":["$","p",null,{"children":"Using this command before your script has finished running will show only a\npartial output. Wait a little longer for the full output to be ready."}]}],"\n",["$","p",null,{"children":"To exit the SSH connection to SCITAS:"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":"exit"}]}]}]}]}],"\n",["$","h2",null,{"id":"cancelling-a-job","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#cancelling-a-job","children":"Cancelling a Job"}]}],"\n",["$","p",null,{"children":["Running ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"sbatch"}]}]}]}]," repeatedly overburdens the workload manager and makes execution and waiting times longer for everyone ! To avoid zombie jobs running in the background, it is important to check for jobs that are stuck in an infinite loop, and to delete them."]}],"\n",["$","p",null,{"children":"To see the list of all queuing and executing jobs, you can use the following :"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"squeue"}],["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":" --account="}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"\"cs307\""}],["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":" --format="}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"\"%.7i %.32j %.10u %.10M %T\""}]]}]}]}]}],"\n",["$","p",null,{"children":"By default jobs have a time slice of 3 days, so a job that does not terminate will use up ressources needlesly for 72h if we don't intervene! If you see any of your own jobs in the queue above, that has been executing for a large amount of time needlessly, you can cancel it like this :"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"scancel"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":" <"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"job"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" numbe"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"r"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}]]}]}]}]}],"\n",["$","h2",null,{"id":"more-advanced-script","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#more-advanced-script","children":"More Advanced Script"}]}],"\n",["$","p",null,{"children":"In the default script, you can replace"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#SBATCH --chdir /scratch/"}]}]}]}]}],"\n",["$","p",null,{"children":"with different variants, depending on where you want to place your executables and where you want your output to appear."}],"\n",["$","p",null,{"children":["The default script uses ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"--chdir"}]}]}]}],", which changes your directory to the one specified ",["$","strong",null,{"children":"before"}]," executing. This means your executables need to be in this specified directory, and your output file will appear there as well."]}],"\n",["$","p",null,{"children":["You can use ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"--output"}]}]}]}]," instead if you want to keep your executables in the current directory, but have your output file be created somewhere else (this can avoid you having to copy executables to scratch before running)."]}],"\n",["$","p",null,{"children":["You can also use various patterns in your directory path, such as ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"%u"}]}]}]}]," for your username and ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"%j"}]}]}]}]," for your batch job number."]}],"\n",["$","p",null,{"children":"Here is an example of using all of these together:"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#SBATCH --output /scratch/%u/slurm-%j.out"}]}]}]}]}],"\n",["$","p",null,{"children":"I personally use the following :"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"--shiki-dark":"#768390","--shiki-light":"#6A737D"},"children":"#SBATCH --output ./output/slurm-%j.out"}]}]}]}]}],"\n",["$","p",null,{"children":["This means I don't actually use ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"scratch"}]}]}]}]," at all : I run my job from my working directory where all my executables are already located, and my output files are created in a directory called ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"output"}]}]}]}],", within my current directory."]}],"\n",["$","p",null,{"children":["For more information on ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"#SBATCH"}]}]}]}],", see ",["$","a",null,{"href":"https://slurm.schedmd.com/sbatch.html","rel":"noopener noreferrer","target":"_blank","children":"the Slurm SBATCH documentation"}],", or ",["$","a",null,{"href":"https://slurm.schedmd.com/sbatch.html#SECTION_%3CB%3Efilename-pattern%3C/B%3E","rel":"noopener noreferrer","target":"_blank","children":"the filename patterns"}]," in particular for other patterns like ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"%u"}]}]}]}]," or ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"%j"}]}]}]}],"."]}],"\n",["$","h2",null,{"id":"ssh-with-vs-code","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#ssh-with-vs-code","children":"SSH with VS Code"}]}],"\n",["$","p",null,{"children":"VS Code offers an easier way to connect via SSH : once connected you can access all your folders and file through VS Code's file explorer, and you can modify files with the editor (as if you were on your own PC!)."}],"\n",["$","p",null,{"children":"I'm also gonna cover adding an SSH Key to SCITAS, which can make your life easier regardless of wether you want to use VS Code or not."}],"\n",["$","h3",null,{"id":"setting-up-a-remote-host","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#setting-up-a-remote-host","children":"Setting up a Remote Host"}]}],"\n",["$","p",null,{"children":"This means you could simply code your entire assignment in SCITAS ! This is quite useful, especially if you are currently using a Linux VM and then transferring to SCITAS for tests."}],"\n",["$","p",null,{"children":["To do this, find your .ssh folder on your PC. It is usually at ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"C:\\Users\\\\.ssh"}]}]}]}]," on Windows or ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"/home//.ssh"}]}]}]}]," on Linux."]}],"\n",["$","p",null,{"children":"Then open the config file inside the .ssh folder, if it is already present. Otherwise, create it."}],"\n",["$","p",null,{"children":["The name of this file should be exactly ",["$","strong",null,{"children":"config"}],", with no extension"]}],"\n",["$","p",null,{"children":"Open the config file in a text editor and write the following, then save."}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":[["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":[["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"Host"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":" <"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"host"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" nam"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"e"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":" HostName"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" helvetios.hpc.epfl.ch"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":" User"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":" <"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":"usernam"}],["$","span",null,{"style":{"--shiki-dark":"#ADBAC7","--shiki-light":"#24292E"},"children":"e"}],["$","span",null,{"style":{"--shiki-dark":"#F47067","--shiki-light":"#D73A49"},"children":">"}]]}]]}]}],["$","figcaption",null,{"data-rehype-pretty-code-caption":"","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":"~/.ssh/config"}]]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":"Host : any name for this host (for example SCITAS)"}],"\n",["$","li",null,{"children":["HostName : ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"helvetios.hpc.epfl.ch"}]}]}]}]]}],"\n",["$","li",null,{"children":"User : your GASPAR username"}],"\n"]}],"\n",["$","p",null,{"children":"You have succesfully created an alias for this remote connection !"}],"\n",["$","p",null,{"children":"With the config file set up, you can also now SSH into SCITAS from any terminal on your host machine using just the host name you have set previously !"}],"\n",["$","p",null,{"children":["You can now write ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"ssh "}]}]}]}]," instead of ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"ssh @helvetios.hpc.epfl.ch"}]}]}]}]]}],"\n",["$","h3",null,{"id":"connecting-through-vs-code","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#connecting-through-vs-code","children":"Connecting through VS Code"}]}],"\n",["$","p",null,{"children":"The first step is to install the following extension :"}],"\n",["$","p",null,{"children":["$","img",null,{"src":"/velite/ssh-into-vm_extension-3f54bc.png","alt":""}]}],"\n",["$","p",null,{"children":"Open VS Code and press CTRL+Shift+P or View > Command Palette"}],"\n",["$","p",null,{"children":["$","img",null,{"src":"/velite/ssh-into-vm_view-command-palette-b6274f.png","alt":"View > Command Palette"}]}],"\n",["$","p",null,{"children":"In the search bar that appears, search for Remote-SSH: Connect to Host..."}],"\n",["$","p",null,{"children":["$","img",null,{"src":"/velite/ssh-into-vm_remote-ssh-connect-host-ba5e2a.png","alt":"Remote-SSH: Connect to Host..."}]}],"\n",["$","p",null,{"children":"A list of all the Hosts in your config file should appear. Select SCITAS in the list. You will be prompted to enter your GASPAR password, and will get connected via SSH to SCITAS."}],"\n",["$","p",null,{"children":["You can verify you are indeed connected to SCITAS by checking if you have a kind of indication saying ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"SSH: "}]}]}]}]," in the bottom left of your VS Code window."]}],"\n",["$","p",null,{"children":"Now that you are connected, when you select Open Folder in VS Code you will be able to navigate through your SCITAS filesystem, and when you open a Terminal in VS Code, it will be a terminal in SCITAS !"}],"\n",["$","h3",null,{"id":"adding-an-ssh-key","children":["$","a",null,{"className":"subheading-anchor","aria-label":"Link to section","href":"#adding-an-ssh-key","children":"Adding an SSH Key"}]}],"\n",["$","p",null,{"children":"Currently you have to enter your GASPAR password whenever connecting to SCITAS, whether in the terminal or via VS Code. You can avoid this by using an SSH Key !"}],"\n",["$","p",null,{"children":"If you have never generated an SSH Key on your PC, generate a new one using the following command :"}],"\n",["$","figure",null,{"data-rehype-pretty-code-figure":"","children":["$","pre",null,{"style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"tabIndex":"0","data-language":"bash","data-theme":"github-dark-dimmed github-light","children":["$","code",null,{"data-language":"bash","data-theme":"github-dark-dimmed github-light","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"--shiki-dark":"#F69D50","--shiki-light":"#6F42C1"},"children":"ssh-keygen"}],["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":" -t"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" ed25519"}],["$","span",null,{"style":{"--shiki-dark":"#6CB6FF","--shiki-light":"#005CC5"},"children":" -C"}],["$","span",null,{"style":{"--shiki-dark":"#96D0FF","--shiki-light":"#032F62"},"children":" \"your_email@example.com\""}]]}]}]}]}],"\n",["$","p",null,{"children":["Find your public key. It should be located in the same .ssh folder as previously (",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"C:\\Users\\\\.ssh"}]}]}]}]," on Windows or ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"/home//.ssh"}]}]}]}]," on Linux). Open the file called ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"id_ed25519.pub"}]}]}]}]," in a text editor and copy it's content."]}],"\n",["$","p",null,{"children":["Connect to SCITAS via SSH using a terminal or using VS Code. In your ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"/home/"}]}]}]}]," folder, create a folder called ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":".ssh"}]}]}]}],", and inside this folder create a file called ",["$","span",null,{"data-rehype-pretty-code-figure":"","children":["$","code",null,{"data-language":"plaintext","data-theme":"github-dark-dimmed github-light","style":{"--shiki-dark":"#adbac7","--shiki-light":"#24292e","--shiki-dark-bg":"#22272e","--shiki-light-bg":"#fff"},"children":["$","span",null,{"data-line":"","children":["$","span",null,{"children":"authorized_keys"}]}]}]}],". In this file, paste your SSH public key."]}],"\n",["$","p",null,{"children":"You have now added your public key to SCITAS ! You should now be able to connect to SCITAS from your computer without using your GASPAR password."}]]]}] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"SCITAS | Sidonie's Website"}],["$","meta","3",{"name":"description","content":"Using the EPFL SCITAS clusters to run jobs. Originally written in the context of the CS-307 Course @ EPFL."}],["$","meta","4",{"name":"author","content":"Sidonie Bouthors"}],["$","link","5",{"rel":"shortcut icon","href":"/_next/static/media/favicon.dce2379b.ico"}],["$","link","6",{"rel":"icon","href":"/_next/static/media/favicon.dce2379b.ico"}]] 1:null