Considering how long I had to bang my head against various manpages to
figure this out, it's amazingly simple. All you need to do is generate a
host key with ssh-keygen, and put it in a file called "authorized_keys" in
/.ssh ( or ~username/.ssh/ if you don't need your rsync to run as
root. ) I don't really like having root able to log into a box without a
passwd, my short-term fix is to move /.ssh/authorized_keys to
/.ssh/authorized_keys.bak with cron when my rsync is done, and vice-versa
when I need to start it.
On Tue, 27 Jun 2000, Michelle L. Murillo wrote:
> 2) I would like to copy files from a local machine to a remote
> rsync or not rsync server (whichever is easier or more secure
> way to do it), again from the docs I can't figure this out....
> In order for me to move stuff to the remote machine I have
> to use ssh (policy around here), but it asks me for my
> password. I realize I can set the RSYNC_PASSWORD variable
> or use a file to get around this, but am curious if there
> is another way around this or a better way. I am trying to
> copy people's /home directory from their local machine to
> a RAID array on another machine. Any thoughts or suggestions?