Re: Re: rsync with public/private keys/no passwords

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ssh also prompts for a password, but can't figure out why. 

Thanks.
James

On Mon, 2003-11-24 at 22:54, Michael Wu wrote:
> ãã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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux