i following the tutorial of the http://www.howtoforge.com/mirror-your-web-site-with-rsync-on-fedora-10
i have completely step by step following the instructions and setup the key, script

my problem is when i use server1 to type the command , it still prompt me for password.

then i look the /var/log/secure, i 've found the message

Authentication tried for root with correct key but not from a permitted host (host=123132132312.static.ctinets.com, ip=20x.80.236.xxx).

can anyone help?


Either your local machine doesn't know about any ssh key, or the remote machine doesn't trust yours. Check if ~/.ssh/id_rsa or ~/.ssh/id_dsa exist. If they do, look at ~/.ssh/authorized_keys on the remote machine and make sure that the contents of the file ~/.ssh/id_rsa.pub or ~/.ssh/id_dsa.pub on the local machine are somewhere in there.

  • but i use command>rsync -avz -e "ssh -i /root/rsync/mirror-rsync-key" root@www.domain.com:/home/someone /home/someone ____ /root/rsync/mirror-rsync-key it point to the private key of local machine?
    – friends
    Nov 10 '10 at 9:25
  • Is it asking you for the key passphrase or for root's password? If it's the latter, verify that /root/.ssh/authorized_keys contains the public key that corresponds to the mirror-rsync-key private key.
    – cdhowie
    Nov 10 '10 at 9:27
  • one strange thing, sever1 can ping server2, but server2 can't ping server1, may this casue the problem?
    – friends
    Nov 10 '10 at 9:34
  • 1
    That's not likely the issue at all, no. If it's asking you for a password it has managed to connect and chat with the other sshd.
    – cdhowie
    Nov 10 '10 at 9:40
  • i use mypc use putty to login server1 to type command to rsycn to server2, cause this issue?
    – friends
    Nov 10 '10 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy