FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
<p>Been struggling with this all day.</p>

<p>Trying to set up SFTP to a new VM on googles compute engine following this <a href="https://cloud.google.com/compute/docs/tutorials/transfer-files#sftp-compute-engine" rel="nofollow noreferrer">walkthrough</a>.</p>

<p>Step 1 is fine.</p>

<p>Step 2 seems to generate the keys OK but i dont get asked for a pass phrase &amp; then i get the following:</p>

<p><a href="https://i.stack.imgur.com/bDMi1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bDMi1.jpg" alt="enter image description here"></a></p>

<p>If i then re-run the command after the keys are generated i get the following:</p>

<p><a href="https://i.stack.imgur.com/KLWsd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KLWsd.jpg" alt="enter image description here"></a></p>

<p>I've found a few questions with the same error but not anything thats fixed the issue.</p>

<p>I've tried logging into GCE console and adding the ssh keys manually but the error remains.</p>

<p>I've tried removing the whole project and starting again with the same result.</p>

<p>I've tried continuing &amp; connecting with Filezilla - obviously doesn't work.</p>

<p>Output from Serial Console:</p>

<pre><code>Feb 23 19:15:21 magento-test sshd[8643]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Feb 23 19:15:22 magento-test sshd[8643]: error: buffer_get_bignum2_ret: negative numbers not supported [preauth]
Feb 23 19:15:22 magento-test sshd[8643]: error: key_from_blob: can't read rsa key [preauth]
Feb 23 19:15:22 magento-test sshd[8643]: error: userauth_pubkey: cannot decode key: ssh-rsa [preauth]
Feb 23 19:15:22 magento-test sshd[8643]: error: Received disconnect from 151.227.74.143: 14: No supported authentication methods available [preauth]
</code></pre>

<p>UPDATE ****</p>

<p>I've made some progress thanks to this <a href="https://stackoverflow.com/questions/35420053/gcloud-ssh-no-supported-authentication-methods-available-server-sent-public?rq=1">question</a>, this has given a work around for a known bug, which has allowed me to create an ssh key &amp; get an active connection in putty.</p>

<p>However i'm still stuck with getting SFTP access, using the same key (that connects through putty) I just get a timeout</p>

<pre><code>Status: Connecting to 104.155.66.130...
Response:   fzSftp started, protocol_version=4
Command:    keyfile "C:\Users\Ben\.ssh\google_compute_engine.ppk"
Command:    open "Ben@104.155.66.130" 22
Error:  Connection timed out after 20 seconds of inactivity
Error:  Could not connect to server
</code></pre>

<p>Any help at all appreciated</p>