Bug 1368

Summary: avoid "scp not found" with option to specify remote scp command
Product: Portable OpenSSH Reporter: David Leonard <David.Leonard>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 4.7p1   
Hardware: Other   
OS: Other   
Attachments:
Description Flags
Add -R option to scp none

Description David Leonard 2007-09-24 22:53:56 AEST
Created attachment 1359 [details]
Add -R option to scp

This is an enhancement request to add -R option to scp. It would specify the full path to the scp program on the remote host. This can be useful for testing and for managing large numbers of hosts where scp isn't installed in a standard location.

I've been running the tests on clean machines without SSH installed.
They fail because the scp tests assumes that the remote scp program will be found in the PATH. Approaches to fix this (from bugs 42, 72, 82 and the FAQ) involve adding a .ssh/environment or configuring --with-default-path. The former is OK (needs PermitUserEnvironment set during testing) and the latter is unacceptable.

Attached is a patch to add -R to scp, along with doc fixes and test changes.