Passing a password into ssh
tlc
tlc at artemide.us
Wed Oct 26 17:03:23 UTC 2005
On Wed, 2005-10-26 at 08:56 -0700, 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?
probably not a great idea to put your root password as clear text on the
machine .. but you could setup SSH keys between the two machines .. even
with a blank passphrase if you want .. probably the best way to do it
>
> -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!
>
>
More information about the fedora-list
mailing list