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

In order to accomplish some of the more advanced tutorials and development while using Pantacor, many users need to access the Pi via SSH. While many of our users will be SSH’ing from a Linux computer, some will need to use Windows. Accessing your Pantacor device is a little different on Windows, so we’ve put together this simple guide.

If you need to SSH into your Raspberry Pi from Windows this guide will help you.

First you’ll need an SSH client. This guide recommends 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 here: https://www.chiark.greenend.org.uk/~sgtatham/putty/

Once Putty is installed you’ll need to use PuTTYgenfirst to generate your keys. Please 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.com and login to your device management platform.
Find your device and select the Metadata Tab.
Add a new entry to the metadata titled: pvr-sdk.authorized_keys
Add your Public Key that 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 to name the settings after your randomly generated device name in Pantacor)
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 management interface 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.