Remotely access a Raspberry PI

7,799

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.

  1. on the router config/port forwarding, forward all requests to port 22 ssh to your RPI' IP address.

  2. 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

Share:
7,799
Marmstrong
Author by

Marmstrong

Updated on September 18, 2022

Comments

  • Marmstrong
    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
    nc4pk almost 11 years
    While 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
    Marmstrong almost 11 years
    I had already seen this page before but I was trying to do it the hard way and learn more.