UNDER CONSTRUCTION
Guides
Windows
Vscode Setup
ℹ️

First, we need to make sure that your account has ssh keys generated


Generate SSH Keys

Right click the Start Menu icon and open a NON-Admin Terminal, PowerShell, or Command Prompt depending on your version of windows.

!!!

Skip if you know this has already been done once or risk overwritting your existing keys

image|261x500


Type in ssh-keygen.exe and hit enter until it stops asking questions.

image|690x485


Open Keys

Paste in the command notepad ~/.ssh/id_rsa.pub into the command prompt and hit Tab and then enter.

image|690x51


If you do not hit tab, this will not work!

Notepad will open with your SSH Key, copy it to your clipboard and close the window.

image|690x354


ℹ️

Enter this key into the Authorized Keys file of the required servers relative account or give to your Server Admin to enter. This is not covered in this guide.


Plugins

Make sure to install the RemoteSSH plugin from Microsoft

image|679x500


Connnect

Once installed, click the icon in the bottom left

image|427x499


At the top of Code pops up an input window. Select Connect to Host

image|690x220


And then select Add New SSH Host

image|690x140


Enter in your information in the following format replacing root with your username and xxx.xxx.xxx.xxx with the external IP of the server you are connecting to.

ssh root@70.98.99.14 -A

image|690x126

ssh root@70.98.99.14 -p 222 -A

If you need to specify a port, use the following format instead replacing 2222 with the port you were given.

image|690x122


Press Enter to confirm and enter again on the top option.

image|690x169


You should see this pop up in the bottom left.

image|690x282


Depending on the system you are in, when you first try to connect, a vscode-server will be set up and configured on your server.

In linux that can be in /Home/<user>/.vscode-server

If you are on windows, check what that is.

The first solution is to try the extension command: Remote-SSH: kill VS Code Server on Host

Open the command pallet (CTRL + SHIFT + P or COMMAND + SHIFT + P (mac) ).

And type Remote kill :

enter image description here (opens in a new tab)

Then try to connect again! (That will kill the server on the host! Which will make it start again on the next try)