Recursive SCP not supported?

+1 vote
asked Apr 6, 2010 by Stephen Zebo (260 points)
edited Feb 15, 2011

After looking at Scp object, I see there are methods for transferring only one file at a time. There are no methods for transferring complete directories (recursively), even though the SCP supports this functionality.


edit: added feature-request tag

2 Answers

+1 vote
answered Apr 6, 2010 by Martin Vobr (12,950 points)
edited Feb 15, 2011
Best answer

I've added it into our list of possible future enhancements.

Vote either this question or this uservoice item up if it's important to you.

edit: added link to the uservoice.

edit: We are working on recursive SCP support and it will be added in the next public release.

EDIT: Recursive SCP is supported in Rebex SFTP build 4060 or later. This build was released in February 2011.

commented Apr 6, 2010 by Stephen Zebo (260 points)
Martin, where is this list posted? I cannot find it in the Rebex's uservoice.
commented Apr 6, 2010 by Martin Vobr (12,950 points)
@Stephen: Here it is @other reader: feel free to upvote this Stephen Zebo's question as well.
0 votes
answered Apr 6, 2010 by Lukas Matyska (61,230 points)
edited Apr 6, 2010

Although the SCP protocol supports directory transfers we decided not to implement this feature due to multiple problems associated with it.

Since the SCP protocol has been superseded by the more comprehensive SFTP protocol, which also operates over an SSH session, we recommend to use the Sftp.PutFiles/GetFiles methods described at this batch transfer tutorial instead.

commented Apr 6, 2010 by Stephen Zebo (260 points)
Lukas, This is wrong assumption. Many companies still use SCP because it doesn't expose as many features as SFTP and limits possible attacks surface.
commented Apr 7, 2010 by Lukas Pokorny (128,250 points)
Actually, for SCP to work, the user has to be able to execute remote commands using SSH's remote execute functionality. Unless the server administrator explicitly denied executing any other commands than "scp", this can be (mis)used to execute arbitrary shell commands, adding many possible attack vectors. Most companies that still use SCP don't deny executing other commands because some SCP clients actually rely on them. For example, WinSCP requires the permission to execute other commands such as "ls" or "rm"(!) in addition to scp: