Hacker News new | ask | show | jobs
by RpFLCL 1253 days ago
This is a handy resource, SSH tunnels are something that I always find easier to grasp when displayed visually.

I use a reverse SSH tunnel to access my home network when traveling.

Ex:

- [Machine-A (on my LAN, behind NAT, with a dynamic IP address)] maintains a long lived SSH connection to [Machine-B (a VPS with a public IP)] with a reverse tunnel configuration.

- I can then SSH into Machine-B and follow the tunnel back into Machine-A, and from there access the rest of my home network.

It works pretty well. I can access files on my NAS and check on my Raspberry Pi cameras without needing to put either on "the cloud". Although I have to admit I always have to pull up a resource like the one in OP whenever I want to setup something like this, I've never learned it by heart and always need a refresher.

2 comments

I just use zerotier, no need to own / set up a VPS. But if I wanted to have all components under my control, then I'd do the same thing as you.
When it comes to accessing my home network from outside, Wireguard replaced these kinds of hacks for me.