Re: rsync and unattended ssh between 2 machines
On Sat, Dec 20, 2003 at 07:53:08PM -0500, Brent Bailey wrote: > ive been trying to get rsync to work with unattended SSH and syncing of > file systems > > Anyone have any good luck with doing this ? suggestions ?? any all all > help is greatly appreciated you have to create a rsa/dsa keypair without a passphrase ( ssh-keygen(1), just hit enter when asked for the passphrase ). save the public key on the remote maschine in $HOME/.ssh/authorized_keys. then execute rsync with "-e ssh". for security reasons it is strongly recommended to do this as non privileged user( _not_ root). use sudo to execute commands as root when necessary. hth, toni -- Kann man etwas nicht verstehen, dann urteile man | toni at stderror dot at lieber gar nicht, als dass man verurteile. | Toni Schmidbauer -- Rudolf Steiner| pgp0.pgp Description: PGP signature
rsync and unattended ssh between 2 machines
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 Anyone have any good luck with doing this ? suggestions ?? any all all help is greatly appreciated -- Brent ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"