rundeck:二级sudo密码身份验证不起作用 [英] rundeck: secondary sudo password authentication not working

查看:75
本文介绍了rundeck:二级sudo密码身份验证不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  <node 
    name="***"
    tags="***" 
    osFamily="***" 
    username="***"
    hostname="192.168.***.***"
    ssh-authentication="password"
    ssh-password-storage-path="keys/nodes/${node.name}/ssh.password"
    sudo-command-enabled="true"
    sudo-password-storage-path="keys/nodes/${node.name}/sudo.password"
  />

命令:

sudo mv /temp/hello.txt /path/to/destination/

然后我通过密钥存储添加了密码.

Then I have added the password through key storage.

  • 我确定sudo.password中写的密码正确.
  • 我重新启动了rundeck服务器,但无法正常运行...
  • 我尝试设置sudo-fail-on-prompt-timeout ="false"

收到错误:

Remote command failed with exit status -1 
14:48:18   Sudo execution password response failed: Failed waiting for input prompt: Expected input was not seen in 5000 milliseconds 
14:48:18   Failed: NonZeroResultCode: Remote command failed with exit status -1 

14:48:13   Password:  

什么不起作用?

推荐答案

几个小时后,我找到了解决方案...控制 sudo-prompt-pattern 属性!根据所使用的操作系统,发行版,..,您确实需要修改默认值,即.+的^ [sudo]密码:.* https://groups.google.com/forum/#!topic/rundeck-discuss/yiYDlfCkJvY

After hours, I've found the solution... Control the sudo-prompt-pattern attribute! Depending on which OS, distrib, .. you're using, you DO need to modify default value which is ^[sudo] password for .+: .* https://groups.google.com/forum/#!topic/rundeck-discuss/yiYDlfCkJvY

这篇关于rundeck:二级sudo密码身份验证不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆