by cheese65536 · 6y ago · 0 comments
$ touch '/tmp/test file'
$ scp localhost:'/tmp/test file' .
scp: /tmp/test: No such file or directory
scp: file: No such file or directory
$ scp localhost:'/tmp/test?file' .
test file 100% 0 0.0KB/s 00:00
Edit: I'll answer my own question, which I clearly never thought about much, since the answer is obvious. I need to escape the space within the string. $ scp localhost:'/tmp/test\ file' .
test file 100% 0 0.0KB/s 00:00No comments yet.