From: "Robert L. Harris" Subject: Re: rsync and ssh Date: Mon, 23 Jun 2003 12:55:49 -0400 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030623165549.GB25076@rdlg.net> References: <3EF72EFF.9405B3C7@tid.es> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bCsyhTFzCvuiizWE" Return-path: Content-Disposition: inline In-Reply-To: <3EF72EFF.9405B3C7@tid.es> List-Id: To: Miguel Gonz?lez Casta?os Cc: linux-admin@vger.kernel.org --bCsyhTFzCvuiizWE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Use "rsync -e ssh" and set up a trust. Make sure that the system initiating the connection is very secure otherwise you've opened up a hole with the user's ID on the remote system. Ideal situation? Machine A sends a file to Machine B Create a new id "rsync-foo" on both machines with 0 privs. Make the home dirs /var/tmp/ and a shell of /dev/null (SHOULD work with rsync). Establish trust from A to B using the rsync-foo user ID. rsync -e ssh -avHD -stats /source/files /target/files Then a cron job on MachineB which validates the data and then copies/rsync's it to it's final destination. Robert Thus spake Miguel Gonz?lez Casta?os (mgc@tid.es): > dear all, >=20 > I am considering to use a synchronization tool to synchronize the > contents of some directories and mirror some directories from one server > to another intranet server behind a dial-up connection. >=20 > As you guys can imagine the speed of the connection is an issue and I > am thinking of a system to send securely the data using some > compression. >=20 > the customer suggested rsync, I have looked through a little bit around > the rsync website and see that there is ssh support for that tool. Which > it would be setup for such system? Should i store the password of the > user used for sshing the server in plain text in a file? >=20 > Many thanks in advance >=20 > Miguel >=20 >=20 >=20 >=20 > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html :wq! --------------------------------------------------------------------------- Robert L. Harris | GPG Key ID: E344DA3B @ x-hkp://pgp.mit.edu=20 DISCLAIMER: These are MY OPINIONS ALONE. I speak for no-one else. Diagnosis: witzelsucht =09 IPv6 =3D robert@ipv6.rdlg.net http://ipv6.rdlg.net IPv4 =3D robert@mail.rdlg.net http://www.rdlg.net --bCsyhTFzCvuiizWE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+9zEV8+1vMONE2jsRAtXdAJ46y3D9uoX+oLH/fiNYws3ijnObegCZAaG5 b/6vDtVF4ULEn5DXWgDUkXQ= =PvAi -----END PGP SIGNATURE----- --bCsyhTFzCvuiizWE--