bash shell send script question

Hi Experts,

Need your help.

I am trying to send a command via ssh to about a hundred network devices. I intend to do this via a bash script something similar to the below:

ssh -l user testmachine.com "show version"

Obviously this will not work given the password prompt that comes up prior the command being run.

Please take note that I cannot use RSA keys since that would require my installing my pubkey to each device; this will take forever.
I also can't install sshpass cause I would have to reach out to the server admin; that too will take forever.

Thanks in advance.

and now? what do you want us to do?

recompile ssh so it takes password as parameter, obviously.. :slight_smile: