我不知道我的安排有什么问题:
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
Run Code Online (Sandbox Code Playgroud)
它有两倍@.我完全不知道如何解决它.
尚未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
Run Code Online (Sandbox Code Playgroud)
我在此处巧妙地添加了“ 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
Run Code Online (Sandbox Code Playgroud)
似乎是某种类型的错误,但不是我们的问题。我将继续调试,但可能类似于@Carolyn的建议/sf/answers/1570738921/。
更新资料
的确,双“ @”完全是红色鲱鱼。对我而言,解决方案是仅使用--ssh-password指定密码(我尚未在远程端点上安装密钥)。
ssh ssh'name:ep1'正常运行时间--ssh-password密码
因此可能是密钥或密码问题。-VV是你的朋友。
| 归档时间: |
|
| 查看次数: |
4048 次 |
| 最近记录: |