[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rsync w/ssh

I solved the problem. First of all one machine was running freessh, the other openssh and there were some hoops to jump through to get them to play nice together. I just setup openssh on both and it made life much simpler. To rid myself of the password prompt, I just didn't use a pass phrase and used DSA encryption. Also I wanted to use ssh2 for obvious security reasons and openssh only uses DSA for ssh2. I haven't tried it in a cron job yet, but I'm not expecting anything different.


Gary Hennigan wrote:

"Kelly Corbin,,," <kcorbin@theiqgroup.com> writes:

I'm trying to setup a cron job to sync two servers using ssh and rsync.  The
problem is I'm promted for a password; which won't work when I stick it in
cron.  Here's the syntax of my command line:

  rsync -vnaz --rsh=ssh  --delete somehost.com:/var/www/ /var/www/

Any ideas?  Thanks!

Why were you thinking you wouldn't be prompted for a password? In
order to do passwordless ssh you need to do the following:

1) On your local system run ssh-keygen and use a good passphrase when

2) Copy the contents of ~/.ssh/identity.pub from the local system to
~/.ssh/authorized_keys on the remote system.

3) Make sure your ssh daemon on the remote system has, at least, the
following in it's configuration file:

        RSAAuthentication yes

That should get you going for passwordless ssh between the two.


-- Kelly Corbin
-- kcorbin@theiqgroup.com
-- On the web @ http://www.theiqgroup.com
-- The IQ Group, Inc.
-- 6740 Antioch Suite 110
-- Merriam, KS 66202
-- (913)-722-6700
-- Fax (913)722-7264

Reply to: