| Summary: | scp doesn't read ~/.ssh/config for second argument | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Sam Bull <axd4ho> |
| Component: | scp | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED INVALID | ||
| Severity: | enhancement | CC: | dtucker |
| Priority: | P5 | ||
| Version: | 7.2p2 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
|
Description
Sam Bull
2018-07-20 02:23:37 AEST
In your example both A and B are host:/path ie a remote to remote copy? If you want both connections to be made from A there's the three-way option to scp:
-3 Copies between two remote hosts are transferred through the local
host. Without this option the data is copied directly between
the two remote hosts. Note that this option disables the
progress meter.
although that also has different behaviour in that the bytes will pass through the originating host instead of directly from A to B.
Ah, didn't see that option. Suppose that's a good enough solution, as it also ensures no sensitive data from the config leaves the local machine (e.g. my problem was that I needed the ProxyCommand containing a port knocking sequence). closing resolved bugs as of 8.6p1 release |