Rsync via ssh and Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory

You can easily use rsync encrypted in a ssh session, with:

rsync -avP -e "ssh -i /home/user/.ssh/id_rsa" remoteuser@remoteserver.com:~/directory/to/sync .

Use the complete path of the ssh key, if you put ~/.ssh/id_rsa you’ll have this error by rsync:

Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory

2 pensieri riguardo “Rsync via ssh and Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory”

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *