On Thursday 09 October 2003 10:41, Aly Dharshi wrote:
Hello,
So how do you sort out the passwd when ssh asks for one, do you have it in some secret file ?
'ssh-agent' is one option for this..
%eval `ssh-agent` %ssh-add
This will store and apply the key when required.
Regards, Mike Klinke
Mike,
I tried this on both the backup machine, and the machine to be backed up. I still get prompted for a password. Could you (or someone else) provide an example of how you would use this in a script that uses rsync and ssh to backup files from one machine to another? I read the man pages for ssh-agent and ssh-add, and it was not clear to me. The eval function provides ssh-agent's pid, but I'm not sure how to use it in this case.
TIA, Bill
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list