title: Can't scp to Azure's VM
body: <p>I'm trying to copy some files from my machine to an Azure VM. I say in advance that I can ssh the Azure's VM, I gave my public key during the creation of the machine. Both machines are Linux.</p>
  
  <p>When I try:</p>
  
  <p><code>sudo scp /path/ca.crt ubuntu@ip.add.res.s:~/</code></p>
  
  <p>I receive in output:</p>
  
  <p><code>Permission denied (publickey).
  lost connection</code></p>
  
  <p>I'm not pointing on a root directory (my file is in a root directory that's why the sudo); I'm not pointing to a wrong user; if I can connect through ssh why scp should be denied?</p>