

We can now create and save files from VSCode on our main computer to our Pi. We are now remotely connected through ssh to our Raspberry Pi. More options are available if you right click the name of your Pi. If you select the Window icon to the right of your Pi, this will open a new VSCode window and ssh into your Pi, and setup the VSCode server. Read more about SSH config files: Host pi-0Ĭlick the new Remote Explorer icon in the left nav. ssh directory and make sure the settings match your Raspberry Pi configuration Select the configuration you created in the. Start typing Remote-SSH, then select Open Configuration File. Open the VSCode Command Palette - MAC: shift+command+p, Windows: shift+ctrl+p You should now see a new Remote Explorer icon in the left nav panel. At the time of this post the version number is v0.64.0 with close to 3 million downloads.Īlso install Remote - SSH: Editing Configuration Files ms-vscode-remote.remote-ssh-edit At the time of this post the version number is v0.64.0 with close to 3 million downloads.Īfter the extensions finish installing, restart VSCode Install Remote - SSH from Microsoft ms-vscode-remote.remote-ssh. Ssh into your Pi once more, this time you should not have to enter your password due to the public key is now in place. Paste the public key into authorized_keys ssh dir does not exist create one with mkdir. ssh dir and create a file called authorized_keys On the cmd line ssh into our Raspberry Pi - ssh PI IP ADDRESS]- ex. On your main computers cmd line, generate a public ssh keyĮxcept the defaults - make note of where your keys are saved.

We will need these shortly! Setup our main computer and the ssh keys file on our Pi ex: wlan0: flags=4163,inet 192.168.2.1Ĭopy 192.168.2.1 and paste it into notepad, textpad, save it somewhere you can find it easily along with the Pi Hostname.

Locate your IP Address - In the terminal window of your Pi, type ifconfig then look for something like wlan0 then inet and the IP Address following inet is your network IP Address. Take note of your Raspberry Pi Hostname.Login to your Pi and select Raspberry Pi Configuration under Preferences If you don't have ssh setup you may need to provide the password you provided when you initially set up your Pi.
