few shell scripts that will act like this:
I will provide a list with nologin user accounts.
one of the script will start tunneling connections from the local server to each of the no loghins accounts from the list.
on the local server will open a port that will be a socks server tunneled to the server where the nologhin account exist
the shell script must open tunnels for all the accounts in the list , and each of them will have a different coresponding local port
[url removed, login to view] - list with nologhins:
./tunnelscript -list [url removed, login to view] -localstartport 50000
the command shall open on local server the prots starting with 50000
and all the ports
will become socks proxyes tunneled to each individual nologhin account.
I will need also another shell script that will check periodicaly the list ( as a cron job ) of tunnels and if anyone dies then will start again the connection using another nologhin account
all those ports:
that will act as proxy servers shall be reachable from external IPs, so the shell script maybe must add to the firewall of the localserver the rule for opening the port as external port