Re: ssh from cron with password

From: Richard E. Silverman (res_at_qoxp.net)
Date: 07/28/03

  • Next message: Richard E. Silverman: "Re: OpenSSH 3.4p1 vs Solaris 9 SSH Public Key Auth"
    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
    

  • Next message: Richard E. Silverman: "Re: OpenSSH 3.4p1 vs Solaris 9 SSH Public Key Auth"