Bug 3065 - scp -A host1:file host2:
Summary: scp -A host1:file host2:
Status: CLOSED DUPLICATE of bug 831
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 8.0p1
Hardware: Other All
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-05 06:39 AEST by Christian Weisgerber
Modified: 2021-04-23 14:56 AEST (History)
1 user (show)

See Also:


Attachments
ssh_scpA.diff (774 bytes, patch)
2019-09-05 06:39 AEST, Christian Weisgerber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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