This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Developing through Windows
Samuel edited this page Apr 12, 2022
·
5 revisions
- Open a terminal. Can do this by pressing
⊞ Win
+R
and then enteringcmd
in the dialogue box. - Enter
ssh-keygen
in the terminal. This will create a new authentication key pair for SSH. The terminal will prompt for a file name and password. - There should now be a public key and private key in
C:\Users\[Username]
. - If one does not already exist, create a
.ssh
folder inC:\Users\[Username]
and move both key files in. - Store public key on remote cloud instance and obtain IP address.
- Connect to the STFC VPN.
- Enter
ssh [FED-ID]@[IP address]
in the terminal followed by a FED-ID password when prompted. - Once connected, a config file should be added to the
.ssh
folder. Disconnect from the remote cloud instance for now by closing the terminal.
- Download Visual Studio Code (a source-code editor).
- Install the "Remote - SSH" extension for VSC through the Extensions tab.
- Once installed, a box should appear at the bottom left of the window.
- Click the box and select "Open SSH Configuration File" from the drop-down menu.
- Select the config file in
.ssh
. - Make sure the config values for "HostName" and "User" are correct
- Click the box again but this time select "Connect Current Window to Host" from the drop-down menu.
- Select the available IP address.
- An integrated terminal should open and attempt to connect to the remote cloud instance. Enter the password like before when prompted.
- From here follow the steps of the code installation guide.