<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:
什么不起作用???
答案 0 :(得分:0)
下班后,我找到了解决方案...... 控制 sudo-prompt-pattern 属性!根据您正在使用的操作系统,发行版,您需要修改默认值,即^ [sudo]密码。+ :. * https://groups.google.com/forum/#!topic/rundeck-discuss/yiYDlfCkJvY