2 ms·
> scp(1), sftp(1): allow the -A flag to explicitly enable agent forwarding in scp and sftp. The default remains to not forward an agent, even when ssh_config en
by jolmg 6y ago
> scp(1), sftp(1): allow the -A flag to explicitly enable agent forwarding in scp and sftp. The default remains to not forward an agent, even when ssh_config enables it.
How could one use agent forwarding with sftp? I guess for scp I can imagine a contrived example like `scp -AT server:'$(ssh server2 generate-paths)' .`, but for sftp? sftp doesn't seem to have a way to run an ssh client on the remote side, and it's not like agent-forwarding is needed for `-J`/`ProxyJump`.
- jasonjayr 6y agoThe SFTP subsystem on the remote end might be replaced with something custom that utilizes the forwarded agent. Perhaps a gateway SFTP server to a NAS that needs forwarded credentials?