致命错误:需要提示输入连接或 sudo 密码(主机:xyz),但输入不明确 正在中止
fab -P -H xyz disable_puppet
在堡垒服务器中运行 fab 命令以禁用 xyz 服务器中的 puppet 时,我收到错误为致命错误:执行任务“disable_puppet”中止时一台或多台主机失败。。
fab -P -H xyz disable_puppet
I am getting the error as Fatal error: One or more hosts failed while executing task 'disable_puppet' Aborting. while running the fab command in bastion server to disable puppet in xyz server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于每个新会话,您都必须添加
*id_rsa
键。只需运行命令
ssh-add ~/.ssh/id_rsa
即可添加密钥,即 ssh-add ~/path to your key.如果出现错误,无法打开与您的身份验证代理的连接。
这是因为您的 ssh-agent 未运行,因此要运行 ssh-agent,只需输入命令
eval ssh-agent -s
和ssh-agent -s
应该位于反引号 ( ' ) 内,位于波浪号 ( ~ ) 下方,而不是单引号 ( <强>' )。它应该适用于使用 zsh 的 ubuntu 或 mac,并且 bash 可以运行
exec ssh-agent bash
然后,只需添加密钥
ssh-add ~/.ssh/id_rsa
和您的结构命令fab -P -H xyzdisable_puppet
应该可以工作。For every new session, you have to add the
*id_rsa
keys.Just add the key by running the command
ssh-add ~/.ssh/id_rsa
i.e. ssh-add ~/path to your key.If getting error as Could not open a connection to your authentication agent.
and that's because your ssh-agent is not running so to run the ssh-agent, just give the command
eval ssh-agent -s
andssh-agent -s
should be inside the backquote ( ' ), located under the tilde ( ~ ), rather than the single quote ( ' ).It should work for ubuntu or mac that use zsh and for bash can run
exec ssh-agent bash
Then, just add the key
ssh-add ~/.ssh/id_rsa
and your fabric commandfab -P -H xyz disable_puppet
should work.