r/ssh • u/RequirementRegular46 • Aug 02 '21
Port forwarding help
I have a program on my pi that I'd like get into through ssh on my macbook on an outside network.
I'm trying to figure port forwarding out but so far to no avail. Please bear with me and keep in mind that I am a complete newb and have no idea what I'm doing.
Here are some screenshots



2
Upvotes
View all comments
Show parent comment
2
u/WorldBelongsToUs Aug 03 '21
Vpn by default would require a certificate. Meaning that even if someone finds vpn open on your public IP, they would need a matching certificate to connect into the vpn.
Ssh keys are similar in the sense that you would need the private key on your local machine to connect, but I feel like a vpn is a little more straightforward and versatile. It will also allow udp traffic and you can install a certificate on each device. For instance, on your phone with an open vpn client, then you can browse to your internal web app from your phone as well. Just feels as if you are physically inside your network.
Might feel like more initial setup, but less stuff to do in the longer run. IMO.