2 ms·
> Honestly, you probably should never do -A anyway; use -J (proxyjump) instead. I want to copy files between servers, ex. `ssh -A serverA` then `rsync ./foo se
by yjftsjthsd-h 3y ago
> Honestly, you probably should never do -A anyway; use -J (proxyjump) instead.
I want to copy files between servers, ex. `ssh -A serverA` then `rsync ./foo serverB:`. Is there a way to do that without `ssh -A`? (And obviously without creating an actual private SSH key on either server)
- gunapologist99 3y agoYes. Create a temporary (or permanent) private key on server A and then put its public key in server B. That's the correct way to handle this situation, definitely not -A.
- lxgr 3y agoThis implies a much higher level of trust in a dev server than might be warranted, since an attacker can exfiltrate keys from that server and then permanently use them from elsewhere. Agent forwarding doesn't have that problem. > That's the correct way to handle this situation, definitely not -A. Maybe for your situation; certainly not for all. If agent forwarding was strictly inferior to ProxyJump/ProxyCommand, it would have been deprecated.