> I scp'd a file called 'a b' to an openbsd server here, then scp'd it
> back a couple time in different ways.  It worked only when using the
> quotes AND escaping, like so:
>
> scp [EMAIL PROTECTED]:"a\ b" .

That's because of the shell.

The shell on the client sees the quotes and doesn't escape the space.
The space is escaped when it gets to the SFTP daemon at the other end.

Without both, the shell at the client does the escaping and sends a
single argument to the scp client.  This sends that argument to the
server, which presumably sees the space and assumes you're asking
for two files called A and B.  You need the \ character to arrive
unaltered at the scp server.

scp [EMAIL PROTECTED]:a\\\ b .

should work as well.

A

Reply via email to