gcloud ssh - 没有支持的验证方法可用(服务器发送:publickey) [英] gcloud ssh -- No supported authentication methods available (server sent: publickey)
问题描述
我试图按照此处
描述的实例进行ssh'ing的简单过程。一>。
不幸的是我一直收到这个错误:
服务器拒绝我们的密钥致命
错误:断开连接:不支持可用的身份验证方法
(服务器发送:publickey)
它看起来像我一切正常。
- 创建一个新的ubuntu instanse
- 尝试使用
$ gcloud compute username @ ssh example-instance --zone us-central1 -a
-
获取将生成ssh密钥的警告
警告:Google计算引擎没有SSH密钥。
警告:将执行[C:\程序文件(x86)\Google\Cloud SDK\google-cloud-sdk\bin\sdk\winkeygen.exe)来生成密钥。
更新了[https://www.googleapis.com/compute/v1/projects/sharp-kayak-120708]。
-
我得到上面提到的错误
服务器拒绝我们的密钥
$
致命错误:断开:没有支持的认证方法可用(服务器发送:publickey)
我看到在本地机器和实例上创建的密钥(gcloud将它们添加到元数据 - > SSH密钥) 。在网络设置中允许使用SSH。
我尝试了一种替代路由描述这里:
- 使用gcloud生成ssh
- 将其添加到pageant中
- 使用PuTTY的SSH
-
同样的错误:
没有支持的认证方法可用
(服务器发送:publickey)
非常感谢您的意见。
报告。
这个问题在Cloud SDK Release 98.0.0中得到了解决。它包括识别损坏的Windows密钥文件并在运行中重新生成它们的补救措施。
问题出在 google-cloud-sdk\bin\sdk\\ \\winkeygen.exe 即可。它在生成的 .ppk 和 .pub 文件中对公钥模数表示进行了修改。然后ssh服务器将模数解释为签名的bignum并保存。
I am trying to follow a simple process of ssh'ing to the instance that is described here. Unfortunately I keep getting this error:
Server refused our key FATAL
ERROR: Disconnected: No supported authentication methods available
(server sent: publickey)
It looks like I do everything correctly.
- I create an new ubuntu instanse
- Try to log in using
$ gcloud compute username@ssh example-instance --zone us-central1-a
Getting a warning that ssh key is going to be generated
WARNING: You do not have an SSH key for Google Compute Engine. WARNING: [C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\sdk\winkeygen.exe] will be executed to generate a key. Updated [https://www.googleapis.com/compute/v1/projects/sharp-kayak-120708].
I get the error mentioned above
Server refused our key FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
I see the keys created on both, local machine and instance (gcloud adds them to Metadata -> SSH keys). SSH is allowed in network settings.
I have tried an alternative route described here:
- generate ssh using gcloud
- add it to pageant
- SSH using PuTTY
same error:
No supported authentication methods available (server sent: publickey)
Would really appreciate your ideas.
Thanks for the reports.
The problem is fixed in Cloud SDK Release 98.0.0. It includes remediation that recognizes corrupt Windows key files and regenerates them on the fly.
The problem was in google-cloud-sdk\bin\sdk\winkeygen.exe. It botched the public key modulus representation in the generated .ppk and .pub files. The ssh server then interpreted the modulus as a signed bignum and bailed.
这篇关于gcloud ssh - 没有支持的验证方法可用(服务器发送:publickey)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!