OpenSSH 5.4p1- scp sending extra "--"

Belem,Karim karim.belem at
Fri Apr 30 04:55:08 EST 2010


I found that in older versions of OpenSSH up to 5.3 when I type "scp  <user>@<machineIP>:<filename> ." internally the command sent to the <machineIP> is scp -f <filename> but with OpenSSH 5.4 the internal command is now scp -f -- <filename>.
I believe the same thing was propagated to OpenSSH 5.5 since the same thing was seen with it.
The problem is that the server side does not understand the new "--" before the filename.

Is there a workaround or a fix to avoid the "--" to be sent internally?

The information contained in this electronic mail transmission 
may be privileged and confidential, and therefore, protected 
from disclosure. If you have received this communication in 
error, please notify us immediately by replying to this 
message and deleting it from your computer without copying 
or disclosing it.

More information about the openssh-unix-dev mailing list