Settings

Theme

SSH Tunneling Has Unrealized Potential

probablymarcus.com

5 points by mrcslws · 2 comments

Reader

1 thread
palata

SSH tunnelling is great, of course. But I can't help but wonder: if the goal is to access private servers, why not just use a VPN?

  • mrcslwsOP

    The goal is usually to access private servers/endpoints on a particular computer. Involving a VPN for that is kinda clunky, it's a heavy-handed solution to make people install a VPN on their phone, especially since they can only use one at a time.

    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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection