From owner-freebsd-questions@FreeBSD.ORG Sat Dec 20 16:52:56 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 E8A0616A4CE for ; Sat, 20 Dec 2003 16:52:56 -0800 (PST) Received: from madras.dyndns.org (dsl-137.241.240.220.dsl.comindico.com.au [220.240.241.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF7FA43D50 for ; Sat, 20 Dec 2003 16:52:52 -0800 (PST) (envelope-from ggop@madras.dyndns.org) Received: from madras.dyndns.org (localhost [127.0.0.1]) by madras.dyndns.org (8.12.9/8.12.9) with ESMTP id hBL0orhN026043; Sun, 21 Dec 2003 11:50:55 +1100 (EST) (envelope-from ggop@madras.dyndns.org) Received: (from ggop@localhost) by madras.dyndns.org (8.12.9/8.12.9/Submit) id hBL0opj3026038; Sun, 21 Dec 2003 11:50:51 +1100 (EST) Date: Sun, 21 Dec 2003 11:50:50 +1100 From: Gautam Gopalakrishnan To: Brent Bailey Message-ID: <20031221005050.GA26010@madras.dyndns.org> References: <1935.65.162.190.4.1071968218.squirrel@new.host.name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1935.65.162.190.4.1071968218.squirrel@new.host.name> User-Agent: Mutt/1.4.1i cc: 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 00:52:57 -0000 On Sat, Dec 20, 2003 at 07:56:58PM -0500, Brent Bailey wrote: > 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 > > #!/bin/sh > > remote="192.168.25.12" > > fslist="/var/mail /var/db/mysql /usr/local/www/data /user2" > > for fs in $fslist ; > do > /usr/local/bin/rsync -avz --delete ${remote}:${fs}/ ${fs}/ > done > > 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 By default, root login is denied. In /etc/ssh/sshd_config, you would need to add "PermitRootLogin yes". hth Gautam