rsync and unattended ssh syncing 2 machines
Gautam Gopalakrishnan
ggop at madras.dyndns.org
Sat Dec 20 16:52:57 PST 2003
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
More information about the freebsd-questions
mailing list