I recommend using "autossh" to maintain ssh tunnels, since they could be flacky on some connections.<p>One day I should do a write up, but i have made an interesting setup for some robots I made<p>Server (with bots) > ssh tunnel maintained by autossh > vps > tinyproxy listening to localip and binded to open vpn connection > sending traffic on via an openVPN connection to random server (purevpn) in US<p>I even made scripts to periodically check status of the remote vpn status on the vps and reconnect if they went down<p>tl.dr:<p>Server > VPS with tinyproxy/openvpn > VPN Provider ips > Internet<p>I could probably do it all on same server but its handy being able to switch off the vps (and hence not pay for resources) when not in use and keeping things separate