![](/img/trans.png)
[英]sudo password automation is not working as expected when executing from crontab?
[英]rundeck: secondary sudo password authentication not working
<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/
然后,我通过密钥存储添加了密码。
收到错误:
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/朗达克讨论会/ yiYDlfCkJvY
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.