| Summary: | scp mishandles files with spaces in names | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | David desJardins <david> |
| Component: | scp | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> |
| Status: | CLOSED WONTFIX | ||
| Severity: | normal | CC: | anders, greenrd |
| Priority: | P2 | ||
| Version: | -current | ||
| Hardware: | All | ||
| OS: | Linux | ||
|
Description
David desJardins
2002-11-02 07:36:29 AEDT
Known, and unfixable, problem with the rcp protocol. A workaround is to double-quote spaces: scp "foo\ bar" foo: We can't fix a 20+ year old, deployed protocol. Mass change of RESOLVED bugs to CLOSED *** Bug 957 has been marked as a duplicate of this bug. *** Can someone explain why this is a protocol problem? If there’s a client-side workaround, why isn’t the filename escaped in the scp client? This is a potentially nasty security problem for a trusted script that scps files from a remote machine, because a malicious filename containing `` could cause arbitrary code to be executed remotely. A similar problem exists with the ssh client: $ touch "123 456" 789; ls 123 456 789 $ ssh host touch "123 456" 789; ssh host ls 123 456 789 |