Hi,

I am planning to create a backup using rsync with ssh.I am running debian linux for this.

I am trying to do the new installation of rsync for this i an trying to create a key and i have logged in as "back" and try to run ssh-keygen -t rsa for creating key and it went well until here after that i am trying to copy this key file to destination machine using

ssh-copy-id -i ~/.ssh/id_rsa.pub [EMAIL PROTECTED] ip

this time i am getting the following error

# ssh-copy-id -i ~/.ssh/id_rsa.pub [EMAIL PROTECTED] ip
21
Password:
bash: line 1: .ssh/authorized_keys: Permission denied

I have changed the permissions of id_rsa.pub file to 770 and in remote machine i have changed the authorized_keys file permissions to 770 but still i am getting same error.This is happening whenever i try to copy using the user name and when i try to copy using root it is working fine.I tried to change the permissions of .ssh folder to 770
but still the same problem.

Thanks for your help
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to