Passing a password into ssh
Mike McGrath
mmcgrath at iesabroad.org
Wed Oct 26 16:01:40 UTC 2005
> -----Original Message-----
> From: fedora-list-bounces at redhat.com
> [mailto:fedora-list-bounces at redhat.com] On Behalf Of Brian D. McGrew
> Sent: Wednesday, October 26, 2005 10:57 AM
> To: For users of Fedora Core releases
> Subject: Passing a password into ssh
>
> 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?
>
> -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!
>
There is a way to do this, but I would strongly suggest using ssh keys
http://www.linuxjournal.com/article/8257
-Mike
More information about the fedora-list
mailing list