I have a Raspberry Pi (RPi) and I am making remote connections to it using ssh. I have managed to set up ssh correctly such that I can access the RPi both from a local area network and from the internet (using a specific port that I opened on my router).
Assuming an user name
john and a RPi named
Inside LAN access
ssh firstname.lastname@example.org ssh john@raspi ssh raspi
Outside LAN access
ssh -p 1234 email@example.com ssh -p 1234 12.345.67.89
But how can I simply do
ssh raspi from outside my LAN?. Is there a way to configure raspi to point to two IP-adresses, one in a LAN and one over the internet?
What I basically want is to access my RPi in a single way, no matter whether I am at home or work.