How can I scp a file with a colon in the file name?
Not quite a bash escaping problem, it’s scp treating x: as a [user@]host prefix, try: scp ./file:\ name.mp4 user@host:”/path/to/dest” Using relative (e.g. ./) or fully qualified paths (/path/to/source) prevents this behaviour – the presence of / before a : causes OpenSSH to stop checking for a possible host: or user@host: prefix). OpenSSH’s scp only special-cases … Read more