From owner-freebsd-questions@FreeBSD.ORG Sun Dec 21 07:42:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 887AA16A4CE for ; Sun, 21 Dec 2003 07:42:44 -0800 (PST) Received: from smtp.noos.fr (nan-smtp-19.noos.net [212.198.2.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id E24F243D7E for ; Sun, 21 Dec 2003 07:42:41 -0800 (PST) (envelope-from bsd@todoo.biz) Received: (qmail 17636 invoked by uid 0); 21 Dec 2003 15:42:40 -0000 Received: from unknown (HELO [10.0.1.2]) ([81.64.61.142]) (envelope-sender ) by 212.198.2.119 (qmail-ldap-1.03) with SMTP for ; 21 Dec 2003 15:42:40 -0000 User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Sun, 21 Dec 2003 16:42:38 +0100 From: Greg Bernard To: Message-ID: In-Reply-To: <1935.65.162.190.4.1071968218.squirrel@new.host.name> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: rsync and unattended ssh syncing 2 machines X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2003 15:42:44 -0000 Le 21/12/03 1:56, =AB=A0Brent Bailey=A0=BB a =E9crit=A0: > ive been trying to get rsync to work with unattended SSH and syncing of > file systems > between 2 machines running FBSD 4.9RC. I have rsync installed and i run a > script like >=20 > #!/bin/sh >=20 > remote=3D"192.168.25.12" >=20 > fslist=3D"/var/mail /var/db/mysql /usr/local/www/data /user2" >=20 > for fs in $fslist ; > do > /usr/local/bin/rsync -avz --delete ${remote}:${fs}/ ${fs}/ > done >=20 You need to specify the -e option (cf man rsync). /usr/local/bin/rsync -e ssh -avz --delete ${remote}:${fs}/ ${fs}/ If you intent to use It as root you need to set up your ssh server so that It does not require a password when rsync initiate the connexion. This can be done in a quite "not so secure manner" by providing an empty password when you generate the ssh key you will be using. Other more tricky and safer solutions could be used... More info and quick setup at this link : http://killyridols.net/tutorials/rsyncssh.html Good luck... Once It works, It works steadily and for long ! > but when i tail the logs of the remote machine i see.. > Dec 20 19:23:26 doppleganger sshd[24493]: Failed password for root from > 192.168.25.1 port 4476 >=20 > Anyone have any good luck with doing this ? suggestions ?? any all all > help is greatly appreciated >=20 >=20 >=20 > --=20 > Brent >=20 ________________________________________________ =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF Gregober ---> PGP ID --> 0x1BA3C2FD omni_osx_ml @at@ todoo.biz ________________________________________________ =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF