AKS:登录到工作节点并获得权限被拒绝(publickey)

问题描述 投票:1回答:2

AKS-无法登录其中一个工作节点(VM)。我根据https://gist.github.com/tsaarni/624d5406e442f08fe11083169c059a68分配了公共IP,但仍然没有运气。我收到以下错误:

sushainMac:.kube sushain_chhangani $ ssh [email protected]权限被拒绝(publickey)。

此处订阅ID如下所示:e84ff951-xxxxxxxxxxxx

azure kubernetes azure-container-service
2个回答
1
投票

sushainMac:.kube sushain_chhangani $ ssh [email protected]权限被拒绝(publickey)。

请找到您的私钥然后使用此脚本SSH:

ssh [email protected] -i ~/.ssh/<your private key>

更新:

当我们使用CLI 2.0创建AKS时,我们可以在这里找到密钥:

enter image description here

UPDATE2:

在此处重置公钥:

enter image description here


1
投票

如果从Azure门户创建AKS,则可以指定VM的用户名。

在这种情况下,用户名不再是azureuser

您可以从Azure门户中找到用户名和公钥

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.