Google server putty connect 'Disconnected: No

2019-01-16 22:51发布

I'm trying to connect to my Debian Google Compute Engine server through PuTTy (I've tried other alternatives too) but when I do I get the error "Disconnected: No supported authentication methods available (server sent: publickey)

The google server came without a username and password, only a url to automatically login to their own terminal.

16条回答
戒情不戒烟
2楼-- · 2019-01-16 23:01

Similar problem - same error message. I got the same message when trying to clone something from bitbucket with ssh. The problem was in my ssh configuration configured in the mercurial.ini: I used the wrong bitbucket username. After I corrected the user name things worked.

查看更多
戒情不戒烟
3楼-- · 2019-01-16 23:06

I had the same problem but got it working by changing enable-oslogin from TRUE to FALSE in google cloud.

from:

to: enter image description here

查看更多
叛逆
4楼-- · 2019-01-16 23:09

If the private key has been generated with ssh-keygen in Linux it needs to be converted with puttygen because Putty does not support openssh keys.

Start puttygen, and click on Conversions - Import key, then click Browse and select the private key generated with openssh, then click on Save private key.

Use your new key to connect.

查看更多
叼着烟拽天下
5楼-- · 2019-01-16 23:10

I had PuTTY working and then one day got this error.

Solution: I had revised the folder path name containing my certificates (private keys), and this caused Pageant to lose track of the certificates and so was empty.

Once I re-installed the certificate into Pageant then Putty started working again.

查看更多
6楼-- · 2019-01-16 23:11

I got this error because I had forgotten to add my username behind the key in the GCE metadata section. For instance, you are meant to add an entry into the metadata section which looks like this:

sshKeys    username:key

I forgot the username: part and thus when I tried to login with that username, I got the no supported auth methods error.

Or, to turn off the ssh key requirement entirely, check out my other answer.

查看更多
萌系小妹纸
7楼-- · 2019-01-16 23:11

Electricity went down and got this error. Solution was to double click your .ppk (Putty Private Key) and enter your password.

查看更多
登录 后发表回答