How can I supply a password on the command line or in a script rather than on an interactive prompt?
I need to copy files in a script and lets say public key is not copied yet to the target.
OS is any version of Unix, like HP-UX, Linux, Solaris etc.
One more thing: if I have to copy public key to a different machine, if say there are 100 users, then I need to copy the public key to 100 different users'
$HOME/user/.ssh/authorizedkeys for a passwordless login.
Is there any way around this by modifying the
root's authorized keys or