Bug 1705 - scp: Need option to specify the prefix directory in server side.
Summary: scp: Need option to specify the prefix directory in server side.
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: -current
Hardware: Other Linux
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-28 22:26 AEDT by Ramprakash jelari
Modified: 2010-04-16 15:50 AEST (History)
1 user (show)

See Also:


Attachments

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