It is seemed that you use "root" to do rsync. Please make sure the ssh connection with public/private keys works first. Good luck. Michael > ------------------------------------------------------------------------ > > 主題(Subject): > Re: rsync with public/private keys/no passwords > 寄信人(From): > James Pifer <jamesredhatlist@xxxxxxxxxxxxxxxx> > 日期: > 24 Nov 2003 11:05:38 -0500 > 收信人(To): > RedHat List <redhat-list@xxxxxxxxxx> > > >Even when I run these commands first, I still get prompted for a >password. Any other suggestions? > >Thanks, >James > >On Thu, 2003-11-20 at 20:40, Harry Putnam wrote: > > >>James Pifer <jamesredhatlist@xxxxxxxxxxxxxxxx> writes: >> >> >> >>>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 don't see you starting the agent anywhere. You must start the >>agent in the shell you run rsync in. >> >>ssh-agent bash >>shh-add >>now rsync >> >> > > -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list