Raspberry Pi: Dummy tutorial on port forwarding and SSH to Pi remotely

JimSpark
8 min readJan 4, 2020

This is a continuation of my series on setting up Raspberry Pi to be a remote jupyter notebook code editor. In the last chapter Raspberry Pi was set up and could be accessed by SSH at your home network. In this chapter I will guide you how to set up port forwarding and access the Pi remotely from the internet, so you could write command under CLI just like at home.

Left: SSH via home wifi // Right: SSH via open internet

First time Pi user and first time reader? Check out the first part here.

But once your Pi is accessible from the internet, you need to be 100x cautious about potential security vulnerability. Most of the content you could find on Google Search should guide you to a term “Port Forwarding”, while in the Raspberry Pi official documentation it explicitly told you that port forwarding exposes a known security problem and you should consider altnerative ways to do it. I am going to introduce both ways in this series. And I promise we will get to host website soon, but let’s make sure it’s safe to do so first.

Table of Content

--

--

JimSpark
JimSpark

Written by JimSpark

Make great things with raspberry pi. Write stuff about Crypto (Or whatever I want really…)