I need it done without the ssh keys. I have the ssh keys in place. However this script will be use by an HA software that will call under root and it must su to that id so it can run the commands. The ssh keys in this case do not work. I must pass it the password of my id within the command. How do I do that? Thanks
Does root have to have anything setup for myid when it runs the the ssh -x myid@hostname so it will not required the password ? or will it just automatically pickup my id ssh keys located on my id .ssh ?
---------- Post updated at 13:03 ---------- Previous update was at 12:59 ----------
Normally not.
myid needs to have the public key from the calling user installed in the file ~myid/.ssh/authorized_keys2 or ~myid/.ssh/authorized_keys (depending on the sshd version; file permissions should be 600, unreadable for others).