Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Net::SSH::AuthenticationFailed:身份验证失败_Authentication_Ssh_Chef Infra - Fatal编程技术网

Net::SSH::AuthenticationFailed:身份验证失败

Net::SSH::AuthenticationFailed:身份验证失败,authentication,ssh,chef-infra,Authentication,Ssh,Chef Infra,从工作站(Windows)尝试执行 刀子ssh'名称:''sudo chef客户端' 但它显示的是错误消息 警告:无法连接到******–Net::SSH::AuthenticationFailed:用户身份验证失败************ 如何解决此错误 另一个问题是如何在不使用任何密码的情况下在工作站的所有节点上执行“sudo chef client”?您的SSH身份验证不起作用,请修复此问题。基于密钥的身份验证我相信您可以在Google上查找,但通常在.ssh/authorized\u k

从工作站(Windows)尝试执行

刀子ssh'名称:''sudo chef客户端'

但它显示的是错误消息

警告:无法连接到******–Net::SSH::AuthenticationFailed:用户身份验证失败************

如何解决此错误


另一个问题是如何在不使用任何密码的情况下在工作站的所有节点上执行“sudo chef client”?

您的SSH身份验证不起作用,请修复此问题。基于密钥的身份验证我相信您可以在Google上查找,但通常在
.ssh/authorized\u keys
中设置公钥,并在工作站上设置代理。

如果运行
ssh--help
您将获得可用选项列表。尝试为详细输出添加
-VV
。这通常很有帮助,因为它应该告诉您用户刀子正在尝试连接什么

我猜您必须合并一个或多个ssh选项(这里列出了一些选项):

-x,--ssh用户用户名

-i,--identity file identity\u file

-p,--ssh password[password]
(如果指定了标志,但未提供密码,则会提示)


文档()中还有一些有用的示例

。ssh/authorized\u密钥,在哪里可以找到?在工作站上设置代理是什么意思?我应该参考哪些步骤?这对我很有效。我必须指定
-x
-I