Secure shell (SSH) is a networking communication to remote login to a server or raspberry pi over a network. This allows us to login and manage files and applications remote from our primary working computer.

ssh <username>@<hostname>

For a default raspberry pi out of the box, this will usually be:

ssh [email protected] 

Logout

To logout from the remote computer and end the session, type logout into the CLI.

logout

VS Code: Remote Connections

You can setup VS Code to create a remote connection via SSH and then code and develop using the IDE on your raspberry pi. I find this method to be very convenient, as you get to use your native computer with all of your native tools and applications handy without having to jump on an entirely different computer where you may not have access to your note taking applications, email, etc.

  1. CMD + SHIFT + P = Command Palette
  2. Begin to type “Remote-SSH…” and click on the Connect to Host… option.
  3. This will bring up the Remote Window menu panel. Once you select connect to a host, you will have to install the SSH extensions for VS Code.
  4. Enter in remote host details (see above.
  5. Enter password (I had to type it in twice).

Screenshot 2024-01-09 at 4.07.13 AM.png

Screenshot 2024-01-09 at 4.05.34 AM.png

There is also a tiny icon in the bottom-left corner of VS Code that you can click to automatically bring this menu up for future reference. It will also provide a status icon if you are currently logged into to a remote host.