gpt4 book ai didi

chef-infra - 跑 Knife 在地址部分给了我双@

转载 作者:行者123 更新时间:2023-12-04 01:02:28 25 4
gpt4 key购买 nike

我不知道我的设置有什么问题:

siegfried@ubuntu:~/chef-repo$ knife ssh -a ipaddress 'name:chefnode' 'uptime'        

WARNING: Failed to connect to -- Net::SSH::AuthenticationFailed: Authentication failed for user siegfried@192.168.1.73@192.168.1.73

failed for user siegfried@192.168.1.73@192.168.1.73

有双 @在其中。我完全不知道如何解决它。

最佳答案

还不能 100% 确定发生了什么,但我相信双“@”只是一个打印消息(它实际上并没有尝试连接到该主机)。双重来自:

# net-ssh-multi-1.2.0/lib/net/ssh/multi/server.rb
#
192 rescue Net::SSH::AuthenticationFailed => error
193 raise Net::SSH::AuthenticationFailed.new("#{error.message}@dude#{host}")
194 end

我非常巧妙地在此处添加了“ dude ”这个词,我们可以在我的输出中看到:
user@ubuntu:~/chef-repo$ knife ssh 'name:ep1' uptime
WARNING: Failed to connect to ep1.site.com -- Net::SSH::AuthenticationFailed: Authentication failed for user user@ep1.site.com@dudeep1.site.com

似乎是某种类型的错误,但不是我们的问题。我将继续调试,但可能与@Carolyn 的建议一致 https://stackoverflow.com/a/22439127/851145 .

更新

事实上,双“@”是一个彻头彻尾的红鲱鱼。对我来说,解决方案是简单地使用 --ssh-password 指定密码(我没有在远程端点上安装 key )。

刀 ssh 'name:ep1' 正常运行时间 --ssh-password 密码

所以可能是 key 或密码的问题。 -VV 是你的 friend 。

关于chef-infra - 跑 Knife 在地址部分给了我双@,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22182850/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com