title: Getting permission denied for SCP over SSH server to local
body: <p>I'm trying to <code>scp</code> some files from a server to my local machine but I either get a permission denied, or the server is copying the files to the server</p>
  
  <p>ex:</p>
  
  <p><code>scp username@host:/files/to/copy/from/\* /path/of/local/destination/</code> --> permission denied</p>
  
  <p><code>scp username@host:/files/to/copy/from/\* ~</code> -->server copies to home directory on the server</p>
  
  <p><code>scp username@host:/files/to/copy/from/\* ~/Desktop</code> -->server creates a file called Desktop on server </p>
  
  <p>I'm not sure what to do, this is on a Mac btw</p>