On Wed, 26 Oct 2005, Brian D. McGrew wrote:
Good morning all:
I want to use ssh in a script to do a night backup of some machines via
cron job. It looks something like:
ssh -l root <server> 'dump 0cf - /filesystem' | gzip > filesystem.gz
Anyone know how I can pass the root password into ssh on the command
line?
generate a ssh keypair without a password and put the public key in
root/.ssh/authorized_keys on the machine you want to ssh into. then you
won't need to pass a password.
joelja
-brian
Brian D. McGrew { brian@xxxxxxxxxxxxx || brian@xxxxxxxxxxxxxxxxxxx }
--
Those of you who think you know it all,
really annoy those of us who do!
--
--------------------------------------------------------------------------
Joel Jaeggli Unix Consulting joelja@xxxxxxxxxxxxxxxxxxxx
GPG Key Fingerprint: 5C6E 0104 BAF0 40B0 5BD3 C38B F000 35AB B67F 56B2