Make sure the permissions are right on your home directories on both machines. You can't have write perms for anyone but your personal directory (directly under /home), and possibly you should limit the .ssh directory to 0700. Paul --- James Pifer <jamesredhatlist@xxxxxxxxxxxxxxxx> wrote: > For some reason I cannot get rsync to work with > public/private key > authentication with no passwords. > > My first try was this: > On the system that runs rsync: > ssh-keygen -C [hostname] -t "rsa" -f > ~/.ssh/identity (no password) > > On the remote machine: > copy the identity.pub that you just created above > to /root/.ssh > cat hostname.pub >> .ssh/authorized_keys > chmod 600 authorized_keys > > On the system that runs rsync: > /usr/bin/rsync -azl -e ssh [remote > machine]:/[remote path]/* /[local > path] > > It's still prompting me for a password. I also tried > it this way: > > On the system that runs rsync: > ssh-keygen -t rsa (no password) > rename id_rsa id_rsa_hostname.pub > copy file to remote machine /root/.ssh > On the remote machine: > cat id_rsa_hostname.pub >> > .ssh/authorized_keys > > I've looked through the man pages and some google > searching, but I don't > see what I'm doing wrong. > > Thanks in advance. > James > > > -- > redhat-list mailing list > unsubscribe > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list