rsync, ssh and DSA key

johan.boye at latecoere.fr johan.boye at latecoere.fr
Thu Apr 6 12:17:14 GMT 2006


Hy,

I just setup RSYNC over SSH between a Linux and a SunOS. I had the same problem.
The goal is simple, put SSH2-RSA Public Key in your machine to the server 

To generate it, it something like this irrc : "ssh-keygen -t rsa"
It creates something like this in "~/.ssh/id_rsa.pub" :

ssh-rsa AAAAB3NzaC1yc2EAAA_I_WANT_TO_LOGIN_;)_ABIwAAAIEA2xzKo65E6SYR65UHSYHS767SHDGHGD1unHAWmFDD4/o9L9XkSRjk5trF+FCIG53Luc5YERFDGRETYrtrceTretVHWg7sHrHVyZv37VYjONtSA4WRieHaT/QI7wdY0eiImDwiMBjNjGk7eK+cFT/U72Q0QKIfi69k= root at myworkstation


You have to put to your server, (here 10.78.0.107) in the .ssh/ user directory, here "/root/.ssh/authorized_keys"

You should :
"chown 700 /root/.ssh/" and 
"chown 600 /root/.ssh/authorized_keys"

And it should work !

But it didn't in my case. The problem was on the SunOS side, it doesn't use OpenSSH/OpenSSL by default, one time installed, it worked.
In a second time, try to have 'almost' the same version of OpenSSH/SSL and RSYNC on both computers...

Good luck

Johan

 >  -----Message d'origine-----
 >  De : rsync-bounces+johan.boye=latecoere.fr at lists.samba.org
 >  [mailto:rsync-bounces+johan.boye=latecoere.fr at lists.samba.org] De la
 >  part de Shachar Shemesh
 >  Envoyé : jeudi 6 avril 2006 13:52
 >  À : khabot
 >  Cc : rsync at lists.samba.org
 >  Objet : Re: rsync, ssh and DSA key
 >  
 >  khabot wrote:
 >  
 >  >Thanks for your response
 >  >I have done this, but I execute
 >  >
 >  >
 >  >>>rsync -avz -e ssh root at 10.78.0.107:/var/mail/ /var/mail
 >  >>>
 >  >>>
 >  >It still askin me for the root password in 10.78.0.117 and for the
 >  >passphrase i, 10.78.0.107
 >  >thank you to help
 >  >
 >  >
 >  Your problem probably has something to do with the way you ssh is set
 >  up.
 >  
 >  First of all, do "ssh root at 10.78.0.107". If that asks for a password,
 >  it's not an rsync problem. Make sure that the permissions on your
 >  /root/.ssh directory and /root/.ssh/authorized_keys file are correct
 >  (RTFM ssh to find out what they should be). Make sure your sshd config
 >  file allows root to log in.
 >  
 >  If all the above doesn't help, try asking for help on the ssh mailing
 >  lists.
 >  
 >            Shachar
 >  --
 >  To unsubscribe or change options:
 >  https://lists.samba.org/mailman/listinfo/rsync
 >  Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


More information about the rsync mailing list