If you are familiar with the editor Visual Studio Code by Microsoft (from now on “vscode”), it’s now possible to run it locally on your computer, either on a browser tab or as a standalone program, while executing your code on the server: this is made possible by linking the two executions through an account and a tunnel.
It can be convenient since you are going to use your local installation with its graphical interface that makes easy to access your projects. The results of the execution will also be presented on the local instance.
Here is a link to the official Microsoft guide.
For this to work you need:
First, you need to connect to our login server as usual, then you can request an interactive session and from there the tunnel mode can be established. Here's the code to achieve this:
ssh deiuser@login.dei.unipd.it
interactive
Wait for the confirmation of allocation and then input:
code tunnel
You will obtain a message like this: Open this link in your browser https://vscode.dev/tunnel/.
Paste it and then:
This will connect your account between the browser and the instance of vscode on our cluster.
Similarly you can connect your local installation to the server using the services provided by the extension “Remote – Tunnels”:
From now on every code execution will be run on the server and the result will be presented on the local terminal of the program.