Skip to content

VS Code (Windows)#

SSH Key generation#

Use the command line to generate an ssh key or generate the SSH key in Windows PowerShell. The public and private keys are stored in C:/Users/<username>/.ssh. VS Code does not support PuTTY.

VS Code SSH pass-through setup#

Please refer to VS code's own documentation about Remote Development using SSH and their SSH Tutorial.

  • Install the "Remote SSH" extension in VS Code.
  • On the bottom left corner, in green color this symbol ("<>") will be there.
  • Click on it, select connect to host and then add host.
  • Give the username and cluster id. E.g. <HPC account>@<clustername>.nhr.fau.de
  • It will prompt you to update the .config file to add the host and the private key location.
  • The .config file to change is on your computer C:/Users/<username>/.ssh/config. Select it from prompt.
  • The config file will open on "Double click".
  • Now you need to add the host: template config files
  • Close the config file and click the green color ("<>").
  • Select connect to host.
  • You will find <clustername>.nhr.fau.de already there.
  • Select it.
  • If you are using this for the first time, you might get asked to choose the operating system. E.g. Linux.
  • Then you will be asked for your private key passphrase.