On 17 March 2010 09:20, madunix <[email protected]> wrote:

> I have a shell script for rsync, how can integrate the passwd inside
> the script its not running as daemon and i don't want exchange the
> keys between the server ...
>

Can you use ssh-agent?   Either you can use the one that appears when you
log in (assuming a graphical login) or you can use your own.

When I did this a while ago for backups from root I had something like

#!/bin/sh
source ~root/.ssh/env
rsync ...

and to prime that file like this::

ssh-agent > ~root/.ssh/env
source ~root/.ssh/env
ssh-add

You may be able to do something similar.

jch
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to