|
|
|
|
|
by toddkaufmann
4604 days ago
|
|
To login to remote machines with dynamic IPs,
have a loop on the remote machine that logs in using ssh to your server and creates an ssh connection back to it.
Remote has ssh key, with ssh config that says
"Remoteforward 23456 localhost:22" and on your server have the shell for the remote id be a command like "sleep 300". Tunnel will restart every five minutes (unless it has active connections), this reduces the likelihood of it hanging.
A ~20 line cron or daemon script, an ssh key, ssh config file, account on server, authorized_keys entry with command specified, and some testing. |
|