How to SSH into your Pantacor-enabled Raspberry Pi from Windows

To accomplish some of the more advanced tutorials with Pantavisor, you may need to access your Raspberry Pi via SSH. While many of our users will be SSH’ing from a Linux computer, some may need to do it from a Windows system. Accessing your Pantavisor-enabled device is slightly different on Windows, so we’ve put together this simple guide to show you how it’s done.

First you’ll need an SSH client. We recommend and will use PuTTY as an example. If you are using a different SSH client, you’ll need to adapt the steps in this guide accordingly.

You can download PuTTY and install it. 

Once Putty is installed you’ll need to use PuTTYgenfirst to generate your keys. Open PuTTYgen (fig. 1)

Screenshot of Windows main menu with PuTTYgen listed in the Recently added section and highlighted in green.
fig. 1

Change the Number of bits in a generated key to 4096, the rest of the default values should be fine.

Click Generate and move your mouse around a bit as instructed.(fig. 2)

Screenshot of PuTTYgen.  The Generate button is highlighted in orange the number of bits in a generated key has been changed to 4096 and highlighted in green.
fig. 2

Click Save Private Key and save the key to your PC
Copy the long string of text in the window.(fig. 3)

Screenshot of PuTTY Ken Generator highlighting the Save private key button in blue and the long SSH-rsa key in fuchsia
fig. 3
  • Go to Pantacor Hub and login or sign up. If you haven’t yet installed Pantavisor onto your device, follow this guide: Install Pantavisor Linux onto your embedded Linux device.

  • Find your device in Pantacor Hub and then select the Metadata Tab.

  • Add a new entry to the metadata titled: pvr-sdk.authorized_keys.
  • Add the Public Key you copied as the value and click the + button. (fig. 4)
Screenshot showing a new metadata entry being added.  Key is pvr-sdk.authorized_keys and the value is a long string representing the SSH-RSA key
fig. 4
  • Open up Putty, expand the SSH category and click on Auth. Then click the Browse button and select the Private key file you saved earlier. (fig. 5)
Screenshot of PuTTY Configuration window.  In the options Tree SSH (under Connection Category) is highlighted in yellow, with Auth highlighted in orange beneath it.
The Browse button and field are highlighted in blue.
fig. 5
  • Click the Session category and enter the IP address of your Raspberry Pi on your local network (if you don’t know it you can look at existing connections on your router. Make sure to change the Port to 8222.
  • Name the connection and click Save to save the settings for the future (it’s recommended that you name the settings after your randomly generated device name in Pantacor Hub)
  • Finally, click Open to open the SSH connection. (fig. 6)
Screenshot of PuTTY Configuration window. The Session Category is highlighted in the tree in Green.  The Host Name (or IP Address) field is highlighted in blue with the value 192.168.9.140.  The Port field if changed to 8222.  Underneath Saved Sessions the field contains hopefully_dynamic_moose, highlighted in yellow while the Save button is highlighted in fuchsia.  The Open button is highlighted in orange.
fig. 6
  • You’ll login with the name of the container as it appears in the Pantacor Hub on the Apps tab. (fig. 7 & 8)
Screenshot of PuTTY SSH login using username: bitwardenrs
fig. 7
Screenshot of Pantacor device management interface showing the Apps tab with the bitwardenrs app highlighted in green.
fig. 8

That’s it! You should now be logged into your App Container via SSH. If you have any problems reach out and we’d be happy to help.

Facebook
Twitter
LinkedIn