Passing a password into ssh

James Kosin jkosin at beta.intcomgrp.com
Wed Oct 26 16:09:16 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
 
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?
>
>-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!
>
>
Brian,

DON'T DO IT THIS WAY.

If you need to do a backup, try setting up the system's cron job to do
the backup.  Or if doing a remote backup to a remote drive, try the
utilities that allow you to do remote backups and don't do this.

James Kosin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFDX6oskNLDmnu1kSkRAxmsAJ90VAOUFCLsVWApSn1QJmNOmSuh+wCfStY3
Svf3NJccZMyXjzqt3Gt4k+o=
=U3Xk
-----END PGP SIGNATURE-----

-- 
Scanned by ClamAV - http://www.clamav.net




More information about the fedora-list mailing list