ssh from cron with password

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I used under Suse 7.3 this script to run my backups ...
#!/usr/bin/ssh-agent /bin/bash
echo "password" | ssh-add
... rsync commands
It invoked a ssh-agent shell, piped the password to ssh-add, and run the
rsync things. After i updated to Suse 8.2 the ssh-add does not read the
piped password - it asks instead for the password.
I read many newsarticel about that issue, but nothing helped really ....

Is there any solution to run this scripts form cron with a password
protected shared key ?

Many thanx for any help


Site Timeline