Passing a password into ssh
Joel Jaeggli
joelja at darkwing.uoregon.edu
Wed Oct 26 16:38:59 UTC 2005
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 at visionpro.com || brian at doubledimension.com }
> --
>> Those of you who think you know it all,
> really annoy those of us who do!
>
>
>
--
--------------------------------------------------------------------------
Joel Jaeggli Unix Consulting joelja at darkwing.uoregon.edu
GPG Key Fingerprint: 5C6E 0104 BAF0 40B0 5BD3 C38B F000 35AB B67F 56B2
More information about the fedora-list
mailing list