Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Developing through Windows

Samuel edited this page Apr 12, 2022 · 5 revisions

Generating SSH keys

  1. Open a terminal. Can do this by pressing ⊞ Win+R and then entering cmd in the dialogue box.
  2. Enter ssh-keygen in the terminal. This will create a new authentication key pair for SSH.
  3. The terminal will prompt for a file name and password.
  4. There should now be a public key and private key in C:\Users\[Username].
  5. If one does not already exist, create a .ssh folder in C:\Users\[Username] and move both key files in.
  6. Store public key on remote cloud instance and obtain IP address.

SSHing in

  1. Connect to the STFC VPN.
  2. Enter ssh [FED-ID]@[IP address] in the terminal followed by a FED-ID password when prompted.
  3. Once connected, a config file should be added to the .ssh folder. Disconnect from the remote cloud instance for now by closing the terminal.

Connecting through VS Code

  1. Download Visual Studio Code (a source-code editor).
  2. Install the "Remote - SSH" extension for VSC through the Extensions tab.
  3. Once installed, a box should appear at the bottom left of the window.
  4. Click the box and select "Open SSH Configuration File" from the drop-down menu.
  5. Select the config file in .ssh.
  6. Make sure the config values for "HostName" and "User" are correct
  7. Click the box again but this time select "Connect Current Window to Host" from the drop-down menu.
  8. Select the available IP address.
  9. An integrated terminal should open and attempt to connect to the remote cloud instance. Enter the password like before when prompted.
  10. From here follow the steps of the code installation guide.
Clone this wiki locally