rsync, ssh and DSA key

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


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/" :

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

You have to put to your server, (here 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


 >  -----Message d'origine-----
 >  De : at
 >  [ at] De la
 >  part de Shachar Shemesh
 >  Envoyé : jeudi 6 avril 2006 13:52
 >  À : khabot
 >  Cc : rsync at
 >  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 /var/mail
 >  >>>
 >  >>>
 >  >It still askin me for the root password in and for the
 >  >passphrase i,
 >  >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". 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:
 >  Before posting, read:

More information about the rsync mailing list