Hi!I've a problem using ssh without password: I want use rsync for automatic scripts,I'm using this 2 names for my [EMAIL PROTECTED] 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:
[EMAIL PROTECTED] 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/id_rsa.pub. The key fingerprint is: 31:df:a5:73:4a:2f:a6:6c:1c:32:a2:f2:b3:c5:a7:1f [EMAIL PROTECTED] [EMAIL PROTECTED] ssh -l rsync12 asterisk12 mkdir -p .ssh [EMAIL PROTECTED]'s password: [EMAIL PROTECTED] cat .ssh/id_rsa.pub | ssh -l rsync12 192.168.251.12 \ >'cat >> .ssh/authorized_keys' [EMAIL PROTECTED]'s password: I changed the permissions on the rsync12 like: [EMAIL PROTECTED] .ssh]$ chmod 600 authorized_keys [EMAIL PROTECTED] ~]$ chmod 700 .ssh and also for the asterisk11 inside the files authorized_keys there's the key right. [EMAIL PROTECTED] .ssh]# vi authorized_keys ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA3KjoZF979dIHasW108TesUKvC7vFMI2knsvhmg2aq2lh4kDdDYsBJBKnsA2mCR8B +BaCnn9ZmkeEy0S7HY2V36b8cGX+cHaCZ4ZCsb+VRp38yMavrF9pykXcnD5NbXP0XIaordQhZktQyjNmGW1dbgvsacxM/MdSQmgaz1JzLFk= [EMAIL PROTECTED] [EMAIL PROTECTED] .ssh]$ vi authorized_keys ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAvRFkfeGzbVJGlWsfXKxxbKEFfBs4ZZIHndlR/YpcgS/8buAxYfToahRC+GSl+ wkQ86c6BqYI/HpFOKoq0EE9nP+5Z1o4GftPTeqUzgfFD+vZtKuwQmmZAH/zuwsMLyjBht+wGBdQQrx36a7sRaEYLpHQHlGyk0ZEKYo+Rv66oXs= [EMAIL PROTECTED] the same like [EMAIL PROTECTED] or [EMAIL PROTECTED] But if I use [EMAIL PROTECTED] ssh -l rsync12 192.168.251.12 is always asked the password....and the same for [EMAIL PROTECTED] ssh -l rsync11 192.168.251.11 where is the problem?rsync script can run in this way...is always asked the password... 1000000000000 thanks, Emanuele -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html