VSCode server on MetaCentrum machines
When developing with VSCode in MetaCentrum, a straightforward setup like:
- project dir in
$HOME
dir - VSCode server running on frontend
- connection to frontend through VSCode remote development
can be far too resource-expensive.
Frontends are not computing nodes
Resource-expensive (CPU, mem) processes running on frontends may be killed without warning.
Therefore, we recommend another setup with the VSCode server running on a computing node within a standard job.
VSCode running on a computing node
- on your local station, generate a SSH key pair
ssh-keygen -f /home/username123/.ssh/my_key
- choose a port number between 7000 and 30000 (e.g. 26759) and add the following sections to
.ssh/config
on your local station
- within a job, setup direct connection to computing node for VSCode remote development
- Through VSCode remote development, connect to hostname and PORT.
Last updated on