Linux – Differences Between SSH Tunnels and OpenVPN

linuxopenvpnsshtunnelingvpn

I discovered that recent OpenSSH has support for tun devices. When it comes to tunnels and VPNs, I always thought the main programme was OpenVPN.

Are there any advantages to using SSH tunnels? What about security? Either one easier to set up?

Best Answer

SSH VPN tunnels still use the ssh connection, no? Last I checked it did. And since ssh runs over TCP that means that the VPN runs over TCP.

This is not a good way to do it. A single dropped packet will cause i hickup of ALL communication that's going through the tunnel.

Tunneling IP over TCP is a bad idea.

OpenVPN can use TCP or UDP. UDP is preferred for the reason I explained (poorly).

Better explanation: http://sites.inka.de/~W1011/devel/tcp-tcp.html

That being said, SSH VPN is probably easier to set up.