- Enable SSH on your PI
- From your pi terminal enter the following:
$ sudo raspi-config 5 Interfacing Options > P2 SSH > Yes
- Connect Raspberry Pi to your network
- Obtain the IP Address of your PI
- From your pi terminal enter the following:
$ ifconfig
- If your pi is connected via ethernet find the string
eth0
>inet xxx.xxx.xxx.xxx
wherexxx.xxx.xxx.xxx
is your IP - If your pi is connected via WIFI find the string
wlan0
>inet xxx.xxx.xxx.xxx
- From your computer on the the same network, download and install VSCode.
- In VSCode, open the Extensions pane on the left side. Install
Remote - SSH
by Microsoft. - Once installed, there will be a new icon on the left side called
Remote Explorer
. From that panel, add a newSSH Target
. Enterpi@xxx.xxx.xxx.xxx
- Then select the first option to store that settings.
- From the
Remote Explorer
panel in vscode, click the folder icon next to the new list item. It will then open a new VSCode window. - The first time you connect select
continue
by pressing enter to save the PI's RSA key. (This key is a generated key that is stored on the PI, and acts a a security mechanism) - Enter your PI's user 'pi' password. The default is
raspberry
. - Then select
Open Folder
and you will be able to browse the PI's filesystem. - If you open the integrated terminal, it will be opened on the pi and not your local computer.