Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2002 14:37:32 GMT
From:      Daniel Barron <nettle@jadeb.com>
To:        freebsd-questions@freebsd.org
Subject:   ssh keys and rsync
Message-ID:  <45231c4a4b.nettle@jadeb.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45231c4a4b.nettle>