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 backup@destination ip this time i am getting the following error # ssh-copy-id -i ~/.ssh/id_rsa.pub backup@destination 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
On Tue, Dec 20, 2005 at 01:20:30PM +0000, gg gg234 wrote:> # ssh-copy-id -i ~/.ssh/id_rsa.pub backup@destination ip > 21 > Password: > bash: line 1: .ssh/authorized_keys: Permission deniedWhile this is really an ssh question, I''d assume that you created the file as root instead of "backup"; or that you have the wrong homedir set for that user. I''d suggest using ssh to log-in and look around: ssh backup@destination ''pwd; id; ls -la .ssh'' ..wayne..