Re: ssh from cron with password
From: Richard E. Silverman (res_at_qoxp.net)
Date: 07/28/03
- Previous message: Richard E. Silverman: "Re: ssh hangs when restoring"
- In reply to: Bernhard Ritter: "ssh from cron with password"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 28 Jul 2003 16:20:48 -0400
>
> Hi
> 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 ?
Since the password is also on disk along with the key, there is no
"protection," and there's no point to this setup. You may as well simply
use an unencrypted key, and limit its use as best you can with
restrictions on the server side.
-- Richard Silverman res@qoxp.net
- Previous message: Richard E. Silverman: "Re: ssh hangs when restoring"
- In reply to: Bernhard Ritter: "ssh from cron with password"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]