A hacky solution to auto-reconnect SSH Tunnels when using password based authentication.
SSH Tunnel Password Based Auto Reconnect
Solution to auto-reconnect multiple ssh tunnels (socks) when using password based authentication.
Tools:
nb_connections.shList nb of current socks openreconnect_ssh.shthe reconnect script
usage: ./reconnect_ssh.sh "password" "port" "user" "ip"
start_good_ones.shstart a bunch of proxies
usage: ./start_good_ones.sh serverslist limitofconnections startport
serverslist is in the format user:password:ip
stop_all.shstop all reconnections and kill all ssh.
from https://github.com/venam/SSH-Tunnel-Password-Based-Auto-Reconnect