rsync not using forwarded ssh credentials
- by Mat
I have a situation where I would like to rsync some files from a remote server to a server in my office. The source server requires key-based authentication and I have an appropriate key set up on my desktop machine.
If I ssh into the local server and then ssh to the remote server, ssh agent forwarding works correctly. However, when I try to rsync over ssh I get permission denied.
So, Desktop -- Local server -- Remote server. When ssh'd onto the local server
ssh user@remote
works, but
rsync -avPe ssh user@remote:/src /dest
does not - Permission denied (publickey).