我正在尝试遵循一个简单的 ssh 连接到描述的实例的过程 here .
不幸的是,我不断收到此错误:
Server refused our key FATAL
ERROR: Disconnected: No supported authentication methods available
(server sent: publickey)
看起来我做的一切都是正确的。
$ gcloud compute username@ssh example-instance --zone us-central1-a
登录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].
Server refused our key
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
我看到在本地机器和实例上创建的 key (gcloud 将它们添加到元数据 -> SSH key )。网络设置中允许使用 SSH。
我尝试了一种替代路线 here :
No supported authentication methods available
(server sent: publickey)
真的很感激你的想法。
最佳答案
感谢 George 的帮助 与周围的工作 :https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/gce-discussion/uAPNpkBJXi4
这里的分步指南:
我现在开始运行了!期待修复,让“google compute ssh 命令工作!错误报告:https://code.google.com/p/google-cloud-sdk/issues/detail?id=546
关于ssh - gcloud ssh -- 没有可用的受支持的身份验证方法(服务器发送 : publickey),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35420053/