I have installed a number of Ubuntu-based systems for relatives and friends, to which I occasionally need remote SSH access via the Internet for administration purposes. However, most of these are effectively firewalled, because their ISPs do not allow incoming connections (and they don't have static IP addresses as well).
I own a Linux server which is accessible from the Internet and has a static IP address. Is it possible to somehow make these computers "phone home" to my server for port-forwarding whenever they're online so that I could SSH back to them?
I've tried using autossh
with remote port forwarding (i.e. the -R
command line option), but this has proven to be not very reliable due to frequent connection losses whereby re-connections are unable to bind to the specified ports:
error: bind: Address already in use
error: channel_setup_fwd_listener_tcpip: cannot listen to port: 30000
What other approaches could I use? Some kind of VPN? IPsec? Or is there some kinds of specialized software I should look for? I don't want to rely on any other service providers for this.