Bug 985 - scp doesn't honor local ~/.ssh/config for host2
Summary: scp doesn't honor local ~/.ssh/config for host2
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 3.8p1
Hardware: All All
: P4 enhancement
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-22 05:14 AEDT by Omachonu Ogali
Modified: 2006-10-07 11:38 AEST (History)
0 users

See Also:


Attachments

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