title: How can I scp a file with a colon in the file name?
body: <p>I'm trying to copy a file using <code>scp</code> in <code>bash</code> with a colon (<code>:</code>) character in the source filename. The obfuscated version of my command I'm using is:</p>
  
  <pre><code>scp file\:\ name.mp4 user@host:"/path/to/dest"
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>ssh: Could not resolve hostname Portal 2: Name or service not known
  </code></pre>
  
  <p>I know I could just rename the file and remove the <code>:</code>, but I'd like to know if it's possible to escape the colon.</p>