|
|
# Important note
|
|
|
If you use the VSCode Remote SSH extension, do not use cluster.pik-potsdam.de as the hostname. Instead, pick one of login01.pik-potsdam.de or login02.pik-potsdam.de. When ending a session, press CTRL + SHIFT + P and select “Kill VS Code Server on Host…” and select the same host.
|
|
|
|
|
|
This is because “cluster” is an alias for one or other of the login nodes, selected based on which node has the lowest current load. Repeated connections to “cluster” via the Remote SSH extension fail to reuse existing vscode-server processes, which then accumulate over time. (Exerpt from [Connection failures when using VSCode Remote SSH Extension](Troubleshooting/Problems with solutions/Connection failures when using VSCode Remote SSH Extension))
|
|
|
|
|
|
# How to connect
|
|
|
|
|
|
1. Open VSCode
|
|
|
2. Install the "Remote - SSH" extension
|
|
|
3. On the left via "Remote Explorer", you should be able to connect to the cluster if you have have previously established a SSH connection
|
|
|
4. Once connected, you should see the connection on the bottom left
|
|
|
|
|
|

|
|
|
|
|
|

|
|
|
3. On the left via "Remote Explorer", you should already be able to connect to the cluster if you have have previously established a SSH connection. **If you use the VSCode Remote SSH extension, do not use cluster.pik-potsdam.de as the hostname. Instead, pick one of login01.pik-potsdam.de or login02.pik-potsdam.de.**
|
|
|
- in VSCode open the ssh remote commands via the shortcut `F1`,
|
|
|
- `Remote-SSH: Add New SSH Host...`,
|
|
|
- enter specific host via `ssh username@login01.pik-potsdam.de` or `ssh username@login02.pik-potsdam.de`
|
|
|
- select where to store your private key (.ssh/config on your local computer)
|
|
|
- now you should be able to connect to a specific host
|
|
|
|
|
|

|
|
|
|
|
|

|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
4. Once connected, you should be able to connect via the Remote Explorer to the left and see the connection on the bottom left
|
|
|
|
|
|

|
|
|
|
|
|

|
|
|

|
|
|
|
|
|
# First example run on the cluster using VS Code
|
|
|
|
... | ... | @@ -17,4 +36,4 @@ |
|
|
- create a new .py file in VSCode
|
|
|
- run the file on the cluster using commands in the terminal
|
|
|
|
|
|
 |
|
|
\ No newline at end of file |
|
|
 |
|
|
\ No newline at end of file |