Bug 1368 - avoid "scp not found" with option to specify remote scp command
Summary: avoid "scp not found" with option to specify remote scp command
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 4.7p1
Hardware: Other Other
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-24 22:53 AEST by David Leonard
Modified: 2007-09-24 22:53 AEST (History)
0 users

See Also:


Attachments
Add -R option to scp (2.92 KB, patch)
2007-09-24 22:53 AEST, David Leonard
no flags Details | Diff

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