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
scp
bash
:
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"