[Bug 2020] Remote-to-remote copying doesn't work when second host not on port 22

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Jun 21 19:44:01 EST 2012


https://bugzilla.mindrot.org/show_bug.cgi?id=2020

Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at zip.com.au

--- Comment #1 from Darren Tucker <dtucker at zip.com.au> 2012-06-21 19:44:01 EST ---
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.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list