Remotely access a Raspberry PI
On your home router you should check for port forwarding
There will be a table that has entries for host, port and some description.
to just get it done : 1. check your IP address by looking at your router's WAN address.
on the router config/port forwarding, forward all requests to port 22 ssh to your RPI' IP address.
To test this just ssh to the address from step 1 , if its all working then you will get a prompt for username.
There are times when your WAN IP will change so yes if you want it to be permanent you should get a domain registered and then sign up for dynDNS service that will allow you to point your domain name to their DNS server and you will get a key from DYNDNS that allows you to run a script every 2-3 minutes to update YOUR actual WAN IP at DYNDNS so they can properly resolve your address when the ISP changes it.
I HIGHLY RECOMMEND YOU HARDEN YOUR RPI if you OPEN it up on PORT 22, install the BlockHost or any of these Blocking IPs
Marmstrong
Updated on September 18, 2022Comments
-
Marmstrong over 1 year
I was wondering how I can access my Raspberry Pi outside my home network. I can VNC through a SSH tunnel over my WIFI internally but I could never manage to do it externally. Is it something to do with port forwarding and maybe DynamicDNS?? Thanks in advance.
-
nc4pk almost 11 yearsWhile this article might answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.
-
Marmstrong almost 11 yearsI had already seen this page before but I was trying to do it the hard way and learn more.