XIII
Very Senior Member
In my current network setup I have two Raspberry Pi's behind my router, that I want to access from all over the world using SSH (yes, I know many people consider this unsafe and I should use OpenVPN, but let's leave that for another discussion for now).
I have opened two different ports on my router and forward those ports on the router to the Pi's:
Thus, I can access the Pi's via these addresses:
Someone suggested me to use nginx as a reverse proxy, but many posts on the internet state this cannot work for the SSH protocol because domain names are not included in requests.
How do I get this to work?
I have opened two different ports on my router and forward those ports on the router to the Pi's:
- port 8001 on router -> port 22 on Pi 1
- port 8002 on router -> port 22 on Pi 2
Thus, I can access the Pi's via these addresses:
- Pi1: router.domain.com:8001
- Pi2: router.domain.com:8002
- Pi1: pi1.domain.com
- Pi2: pi2.domain.com
Someone suggested me to use nginx as a reverse proxy, but many posts on the internet state this cannot work for the SSH protocol because domain names are not included in requests.
How do I get this to work?