Bug 985

Summary: scp doesn't honor local ~/.ssh/config for host2
Product: Portable OpenSSH Reporter: Omachonu Ogali <missnglnk>
Component: scpAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED WONTFIX    
Severity: enhancement    
Priority: P4    
Version: 3.8p1   
Hardware: All   
OS: All   

Description Omachonu Ogali 2005-02-22 05:14:55 AEDT
When copying a file between two remote hosts (scp host1:/path/to/file 
host2:/path/to/file), it is the equivalent of:
ssh host1 'scp /path/to/file host2:/destination/path'

If you are using locally-defined nicknames for hosts (from ~/.ssh/config), the 
copy to host2 will fail if the nickname is not defined in host1's ~/.ssh/config.

Perhaps, the user can specify a command line argument to optionally have the 
local instance of scp can pass the locally-defined parameters for host2 (if it 
exists in ~/.ssh/config), to the ssh process being spawned on host1...
Comment 1 Damien Miller 2006-03-12 16:15:41 AEDT
Sorry, but this would add a fair amount of complexity to something that doesn't work very well already and would probably break working configurations if we went ahead and implemented it.
Comment 2 Darren Tucker 2006-10-07 11:38:43 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.