Re: [K12OSN] rsync question...

Hans Ekbrand (hans@sociologi.cjb.net)
Fri, 15 Nov 2002 21:44:42 +0100



--LKTjZJSUETSlgu2t
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 15, 2002 at 09:48:09AM -0500, Shawn Powers wrote:
> Sadly, I've even "RTFM"... and this escapes me...
>=20
> With the command:
>=20
> rsync -a -e ssh source/ username@remotemachine.com:/path/to/destination/
>=20
> how on earth do I get the password to get "fed" into the command, so I=20
> could set up a cron job?

You don't. Authenticate with keys instead (If you can, if
remotemachine is not under your control, the sysadmin could have
disable authentication by keys, but that would be really stupid). See
the man pages of ssh. And don't encrypt the private key, or you will
have the same problem with the passphrase as you now have with the
password.

> Sorry for the seemingly simple question, but I want to get my backups=20
> set up before the weekend, and it's Friday!!!

1. ssh-keygen (You might need to use the -t option to specify a ssh
version 2 type of key).

2. ssh-copy-id username@remotemachine.com

Should be it.

> Thanks in advance,
> -Shawn

You are welcome.

--=20
Hans Ekbrand (http://sociologi.cjb.net) 
GnuPG key: 1024D/7050614E
Fingerprint: 1408 C8D5 1E7D 4C9C C27E  014F 7C2C 872A 7050 614E
Key available at wwwkeys.nl.pgp.net   Encrypted emails prefered.


--LKTjZJSUETSlgu2t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE91Vy6fCyHKnBQYU4RAndaAKDlpMQ7QuCqtZKOjv4N8Qs319CbtgCg5fiu
42fYM7IeCUpH0hvp6x078Y0=
=DnMn
-----END PGP SIGNATURE-----

--LKTjZJSUETSlgu2t--



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see