Bug 1362

Summary: Scp should not follow links
Product: Portable OpenSSH Reporter: Alex <sdsd>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WONTFIX    
Severity: normal CC: djm
Priority: P2    
Version: 4.7p1   
Hardware: Other   
OS: Linux   

Description Alex 2007-09-15 21:37:01 AEST
Scp should not follow links, specially directory links. This can lead to creating loops and copying files several times.
Comment 1 Damien Miller 2007-12-21 12:30:08 AEDT
Unfortunately we cannot change the behaviour of scp. There is no way to extend the protocol it uses in a backwards-compatible manner and we can't change the default behaviour because it would break user's scripts.

I suggest that you look at using tar or rsync over ssh if you want to avoid this.
Comment 2 Damien Miller 2008-04-04 10:00:52 AEDT
Close resolved bugs after release.