Re: how to ssh in cron

2001-02-12 Thread John Todd
>How do I call rsync with -e ssh in a shell script run from cron. SSH >requires a password. How do I pass the password to it from the script? > >V/r >Jay The public key method works. I'm a bit more paranoid, however. I like to enter my password after the machine boots up, so that I don't h

Re: how to ssh in cron

2001-02-12 Thread tim . conway
The easiest way is to generate keys with no passphrase. it's still secure, as long as nobody can get your private key. If you insist on adding a password, you'll have to keep it in plaintext in a file and reference it with --password-file, or if you want to add a layer of indirection to make

Re: how to ssh in cron

2001-02-12 Thread Phillip Moore
Jay, Why don't you configure ssh to not require a password with an public key or one of the other methods. I can't imagine that is any less in-secure than embedding the password into some script. -- Phillip Moore| Cluster Administrator [EMAIL PROTECTED] | "If you don't know what you're d

Re: how to ssh in cron

2001-02-12 Thread Joe Rice
The easiest way would be to use the public/private key mechanisms. man ssh-keygen i use rsync -e ssh in cron for most of the things i do with rsync and it works well. joe Jay Moore([EMAIL PROTECTED])@Mon, Feb 12, 2001 at 04:02:45PM +: > How do I call rsync with -e ssh in a shell script run