Hi i'm following the tutorial below
https://www.linode.com/docs/tools-refer ... n-to-rsyncI already do ssh-keygen by following this tutorial
https://www.linode.com/docs/security/se ... ur-server/so i skipped that part in rsync tutorial page and i'm able to do this in my local machine:
scp ~/.ssh/id_rsa.pub
user@hostname.com:/home/user/.ssh/uploaded_key.pub
But this line:
ssh
user@hostname.com "echo `cat ~/.ssh/uploaded_key.pub` >> ~/.ssh/authorized_keys"
gives me error:
ssh username@XXXX "echo `cat ~/.ssh/uploaded_key.pub` >> ~/.ssh/authorized_keys"
cat: /Users/xxx/.ssh/uploaded_key.pub: No such file or directory
Permission denied (publickey).
what does it mean? I try to ignore it and do rsync command:
rsync -a ssh [source] user@XXXX:/var/www/sandbox/test_rsync
It gives me a Permission denied (13) error.
I just hope that his forum is still alive and give me tips because opening a ticket for this will probably get ignored.