From owner-freebsd-questions Fri Jun 21 6:37:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailgate.jadeb.com (mailgate.jadeb.com [62.49.93.66]) by hub.freebsd.org (Postfix) with ESMTP id B405B37B40B for ; Fri, 21 Jun 2002 06:37:38 -0700 (PDT) Received: from jadeb.com (firewall.jadeb.com [192.168.254.2]) by mailgate.jadeb.com (Postfix) with ESMTP id E473C46D7E for ; Fri, 21 Jun 2002 14:40:34 +0000 (GMT) Received: from nettle by jadeb.com with local (RemoteNB 1.54beta1) for freebsd-questions@freebsd.org; 21 Jun 2002 14:37:32 +0000 Date: Fri, 21 Jun 2002 14:37:32 GMT From: Daniel Barron To: freebsd-questions@freebsd.org Subject: ssh keys and rsync Message-ID: <45231c4a4b.nettle@jadeb.com> X-Organization: Jades Domain User-Agent: Messenger-Pro/2.60 (RemoteNB/1.54beta1) (RISC-OS/4.29) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG FBSD 4.5-stable -> Sun OS5.8 I want to set up a crontab-ed script so that I can rsync via ssh a web site to another server to keep it sin sync. (yes I know I could use wget on the remote server but I have reasons not to). I've found instructions on a web page on how to set up keys so that a user/pass is not needed. But I can't get it to work from the FreeBSD. This is what I did on a linux box: ssh-keygen -t dsa (no passphrase chosen) scp ~/.ssh/id_dsa.pub someserver:.ssh/authorized_keys2 Then that was it I could just 'ssh someserver' and be logged in. Someserver is a SunOS 4.8. I tried the same on the FreeBSD box and it always asked me for a password. I also tried without the -t dsa. Either, what am I doing wrong? Or where can I find the info to do what I want to do? BTW, I know blank passphrases are bad, but how would I connect without any user intervention? The eventual commands would be similar to: cd /usr/local/www/ rsync -avz --delete * -e ssh someserver:/usr/local/www/ -- Daniel Barron (Visit http://dansguardian.org/ - True web content filtering for all) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message