How can I scp a file with a colon in the file name?

后端 未结 2 2011
滥情空心
滥情空心 2020-12-29 18:42

I\'m trying to copy a file using scp in bash with a colon (:) character in the source filename. The obfuscated version of my command I

2条回答
  •  离开以前
    2020-12-29 19:06

    I try using fully qualified paths as @mr.spuratic answer but not work and in my situation, I have to use absolute paths, this is my solution:

    scp `hostname`:/root/this/is/test/file.txt user@host:"/path/to/dest"
    

提交回复
热议问题