rsync without password

sinidr at sinidr at
Mon May 29 09:57:54 GMT 2006

Hi!I've a problem using ssh without password:
I want use rsync for automatic scripts,I'm using this 2 names for my asterisk at home2.5 linux (based on red hat), rsync11 and rsync12.
This is the way I use to change the configuration and then using without password ,
but the password is always asked:

[rsync11 at asterisk11]$ ssh-keygen -t rsa 
Generating public/private rsa key pair. 
Enter file in which to save the key (/home/rsync11/.ssh/id_rsa): 
Created directory '/home/user1/.ssh'. 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/rsync11/.ssh/id_rsa. 
Your public key has been saved in /home/rsync11/.ssh/ 
The key fingerprint is: 
31:df:a5:73:4a:2f:a6:6c:1c:32:a2:f2:b3:c5:a7:1f rsync11 at asterisk11

[rsync11 at asterisk11]$ ssh -l rsync12 asterisk12 mkdir -p .ssh 
rsync12 at asterisk12's password: 

[rsync11 at asterisk11]$ cat .ssh/ | ssh -l rsync12 \ 
>'cat >> .ssh/authorized_keys' 
rsync12 at asterisk12's password:

I changed the permissions on the rsync12 like:
[rsync12 at asterisk12 .ssh]$ chmod 600 authorized_keys
[rsync12 at asterisk12 ~]$ chmod 700 .ssh

and also for the asterisk11

inside the files authorized_keys there's the key right.
[rsync12 at asterisk12 .ssh]# vi authorized_keys

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA3KjoZF979dIHasW108TesUKvC7vFMI2knsvhmg2aq2lh4kDdDYsBJBKnsA2mCR8B
+BaCnn9ZmkeEy0S7HY2V36b8cGX+cHaCZ4ZCsb+VRp38yMavrF9pykXcnD5NbXP0XIaordQhZktQyjNmGW1dbgvsacxM/MdSQmgaz1JzLFk= rsync11 at asterisk11.local

[rsync11 at asterisk11 .ssh]$ vi authorized_keys

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAvRFkfeGzbVJGlWsfXKxxbKEFfBs4ZZIHndlR/YpcgS/8buAxYfToahRC+GSl+
wkQ86c6BqYI/HpFOKoq0EE9nP+5Z1o4GftPTeqUzgfFD+vZtKuwQmmZAH/zuwsMLyjBht+wGBdQQrx36a7sRaEYLpHQHlGyk0ZEKYo+Rv66oXs= rsync12 at asterisk12.local

the same like root at asterisk11 or root at asterisk12.
But if I use 

[rsync11 at asterisk11]$ ssh -l rsync12
is always asked the password....and the same for 

[rsync12 at asterisk12]$ ssh -l rsync11
where is the problem?rsync script can run in this always asked the password...

1000000000000 thanks, 

More information about the rsync mailing list