5 points · by mrcslws · 1w ago · 2 comments
Plus, using a VPN means hosting endpoints on ports. Ports can be accessed by anyone on the machine, so you then have to build some kind of authentication on top of that, e.g. the annoying Jupyter authentication token that you have to copy-paste. Tunneling over SSH gets rid of that, because the SSH layer already provides the user authentication, so you can host endpoints on Unix domain sockets or Windows named pipes stored at locations that only that user can access.
Note that SSH tunneling works alongside your VPN; I use a VPN to access my home network when I'm away, and I use SSH tunneling on top of that to access these private apps running on my computer. When I'm already at home the VPN is unnecessary; so in this mental model, the VPN solves a different problem than I'm solving.