SSH VPN
I’ve been experimenting with using SSH as a VPN. That is to say not just tunnelling a single port but forwarding all traffic through the remote host like a router.
I’ve pulled together instructions from here and here and have this:
Enable root SSH with keys and allow tunnelling on the remote machine in /etc/ssh/sshd_config: PermitTunnel yes
PermitRootLogin without-password
Generate root SSH keys on the local machine and copy the public one to the remote machine: ssh-keygen -t rsa
scp id_rsa.