title: Cannot ssh into server except with google dev console ssh
body: <p>I cannot ssh from my computer into the server hosted on Google Cloud. </p>
  
  <p>I tried the normal ssh-keygen with user@domain.com and uploading the public key, which worked last time, but this time it didn't. The issue started after I changed the password for the account. After that I could no longer ssh or sftp into the account, although I wasn't disconnected until I disconnected. </p>
  
  <p>I then tried the gcloud ssh user@instance and it ran fine and told me it just hasn't propagated yet. </p>
  
  <p>I added <code>AllowUsers user</code> to the server's ssh config file and I restarted ssh on the server, but still the same result</p>
  
  <p>Here's the error:</p>
  
  <pre><code>Permission denied (publickey).
  ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
  </code></pre>
  
  <hr>
  
  <p>Update:</p>
  
  <p>I've been working with Google tech support and this issue is still unresolvable. A file called <code>authorized_keys</code> permissions keep getting changed on boot to another user, who I also cannot log in as.</p>
  
  <p>So I change it to:</p>
  
  <pre><code>thisUser:www-data 755 
  </code></pre>
  
  <p>but on boot it changes it to:</p>
  
  <pre><code>otherUser:otherUser 600
  </code></pre>