| Summary: | Remote-to-remote copying doesn't work when second host not on port 22 | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Daniel Kullmann <daniel.kullmann> |
| Component: | scp | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED INVALID | ||
| Severity: | normal | CC: | dtucker |
| Priority: | P2 | ||
| Version: | 6.0p1 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Daniel Kullmann
2012-06-21 17:46:14 AEST
Actually it *is* looked up in ~/.ssh/config, but on the remote host. By default, scp remote1:foo remote2:bar actually runs "ssh remote1 scp foo remote2:bar" (this is behaviour inherited from rcp). You need to either put the port number in the config file on the remote host, or use scp's "-3" option to do a 3-way copy which will use the local config file. OK, thanks for clearing that up. Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1 |