Bug 1705

Summary: scp: Need option to specify the prefix directory in server side.
Product: Portable OpenSSH Reporter: Ramprakash jelari <jelari>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WONTFIX    
Severity: normal CC: djm
Priority: P2    
Version: -current   
Hardware: Other   
OS: Linux   

Description Ramprakash jelari 2010-01-28 22:26:30 AEDT
Hi,

Using scp to copy the files to the specic host, and mentioning the relative path. By default , home directory is prefixed with relative path at the server side and copied the file. so, it could be nice if there is a configurable option to prefix the directory name istead of home directory, as we see in ftp anon_root parameter in vsftp.conf file.

eg: 

scp testfile host:success -> at the server side it should be copied to <configurable-path>/success/testfile.
Comment 1 Damien Miller 2010-02-12 10:18:31 AEDT
Unfortunately scp is basically a non-extensible protocol and we have closed adding new features to it. sftp(1) is becoming a more viable replacement, especially in the forthcoming openssh-5.4 where it will include support for recursive file transfers.
Comment 2 Damien Miller 2010-04-16 15:50:50 AEST
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1