On Fri, Nov 15, 2002 at 09:48:09AM -0500, Shawn Powers wrote: > Sadly, I've even "RTFM"... and this escapes me... > > With the command: > > rsync -a -e ssh source/ username remotemachine com:/path/to/destination/ > > how on earth do I get the password to get "fed" into the command, so I > could set up a cron job? You don't. Authenticate with keys instead (If you can, if remotemachine is not under your control, the sysadmin could have disable authentication by keys, but that would be really stupid). See the man pages of ssh. And don't encrypt the private key, or you will have the same problem with the passphrase as you now have with the password. > Sorry for the seemingly simple question, but I want to get my backups > set up before the weekend, and it's Friday!!! 1. ssh-keygen (You might need to use the -t option to specify a ssh version 2 type of key). 2. ssh-copy-id username remotemachine com Should be it. > Thanks in advance, > -Shawn You are welcome. -- Hans Ekbrand (http://sociologi.cjb.net) <hans sociologi cjb net> GnuPG key: 1024D/7050614E Fingerprint: 1408 C8D5 1E7D 4C9C C27E 014F 7C2C 872A 7050 614E Key available at wwwkeys.nl.pgp.net Encrypted emails prefered.
Description: PGP signature