Raspberry Pi: Dummy tutorial on port forwarding and SSH to Pi remotely
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.
First time Pi user and first time reader? Check out the first part here.
Raspberry Pi: Dummy toturial on linux server, SSH and TCP/IP
This series aim to walk through difficult network concepts / terms by setting up a linux server with Raspberry Pi that…
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
- Increase your security before exposing your Pi to the internet
- Port Fowarding
- What’s next: Cloud Proxy Connections
Increase your security before exposing your Pi to the internet
There are two things you should do before exposing your Pi to the internet.
- Change the password of default user Pi
To change the password, simply type in
passwd and follow the text instructions by re-typing your old password, your new password and re-tpying your new password.
2. Create a new user without sudo access and use that user to access your pi remotely
sudo: similar to system admin preveilage in windows, which user can run command that is defined as superuser level, including rebooting your computer and installing any software. You can check out more here…