SSH Tunnel vs VPN
People often think an SSH tunnel is a small VPN. It is not. A tunnel carries one port to one place, inside one SSH login. A VPN joins your whole computer to a private network, so every app goes through it. Use a tunnel for one service and a VPN for a network.
SSH Tunnel
A way to send one more link through SSH. It reaches a private service.
An SSH tunnel carries another connection inside your SSH login. You pick a port on your own computer. Anything sent to it travels through SSH and comes out on the server's side. That lets you reach a service the server keeps private, like a database. Nothing new has to be opened to the internet.
Virtual Private Network (VPN)
A locked tunnel across the web. It links you to a private network.
A VPN makes a private, scrambled link across the public internet. Everything you send goes through this tunnel to a VPN server first. People on the same café Wi-Fi only see scrambled data. Companies use a VPN so staff can reach the office network from home. Paid home VPNs also hide the sites you visit from your local network. But the VPN company can still see them.
In one line
- SSH Tunnel
- A way to send one more link through SSH. It reaches a private service.
- Virtual Private Network (VPN)
- A locked tunnel across the web. It links you to a private network.