There is another way to do this using shared connections, that is: someone initiates a connection using a password, and each subsequent connection will be multiplexed on the same channel, which negates the need for re-authentication. (And even faster)
you just need to log in, and while you log in, the bash script will be able to open ssh connections.
Then you can stop the script from working if someone else has not opened the channel by clicking
ssh ... -o KbdInteractiveAuthentication=no ....
Kent Fredric Dec 13 '09 at 10:25 2009-12-13 10:25
source share