Hi Mark,
Assuming you have a static address or hostname that your NAT'd box can ssh to, I've seen AutoSSH [1] used in similar circumstances.
If you combine that with SSH's ability to do reverse tunnelling [2] you have a viable solution as long as the internet connection is alive.
You might want to consider using mosh [3] for at least your connection over the reverse tunnel - it should tolerate bad connections better.
* http://www.harding.motd.ca/autossh/ * http://www.howtoforge.com/reverse-ssh-tunneling * https://mosh.mit.edu/
All the best,
Jim Rippon
On 2014-08-06 11:09, Mark Rogers wrote:
I know others here have experience of this, and I have a potential use for it.
Situation: Linux box (Debian/ARM) behind a Draytek router which will variously connect to the Internet via ADSL, WiFi, 3G, etc.
I want to have SSH access to the box whenever it is online without relying on having a routable or static IP at the router, ie the box will need to make and maintain an outbound connection to me so that I can access it when needed.
I think this is what Chris does on his boat, but any pointers to the right way to go about this appreciated. Not looking for a full VPN (not least because some 3G providers block VPN access). The Draytek is already setup to manage office-to-office VPN but it's the failure of that which has prompted this.
--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG
main@lists.alug.org.uk http://www.alug.org.uk/ [1] http://lists.alug.org.uk/mailman/listinfo/main [2] Unsubscribe? See message headers or the web site above!
Links: ------ [1] http://www.alug.org.uk/ [2] http://lists.alug.org.uk/mailman/listinfo/main