rsync not using forwarded ssh credentials
Posted
by
Mat
on Super User
See other posts from Super User
or by Mat
Published on 2012-06-20T08:47:53Z
Indexed on
2012/06/20
9:19 UTC
Read the original article
Hit count: 195
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).
© Super User or respective owner