Bug 3065

Summary: scp -A host1:file host2:
Product: Portable OpenSSH Reporter: Christian Weisgerber <naddy>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED DUPLICATE    
Severity: enhancement CC: djm
Priority: P5    
Version: 8.0p1   
Hardware: Other   
OS: All   
Attachments:
Description Flags
ssh_scpA.diff none

Description Christian Weisgerber 2019-09-05 06:39:31 AEST
Created attachment 3319 [details]
ssh_scpA.diff

scp's ability to copy between two remote hosts has always seemed of very limited use to me, since the first remote host must be able to establish an ssh connection to the second host.  This is really a case where agent forwarding comes in handy.  Currently you can already do
 
  scp -oForwardAgent=yes host1:foo host2:
 
and the attached patch adds the -A flag as a shortcut:
 
  scp -A host1:foo host2:
 
Note that this will forward the agent connection to host1 only.
Comment 1 Damien Miller 2019-09-13 14:38:10 AEST
This diff seems to be just the manpage - I think you're missing the code changes.

(Merging this with bug #831)

*** This bug has been marked as a duplicate of bug 831 ***
Comment 2 Damien Miller 2021-04-23 14:56:29 AEST
closing resolved bugs as of 8.6p1 release