gpt4 book ai didi

ubuntu - jenkins 使用 sudo 时出现身份验证错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:45:43 25 4
gpt4 key购买 nike

我在 jenkins 中有 sh 脚本,它有 sudo ssh 命令,我收到这个错误

Warning: Identity file key.pem not accessible: Permission denied.
Host key verification failed.
sudo: no tty present and no askpass program specified

我找到了解决方案说添加

jenkins ALL=(ALL) ALL

/etc/sudoers 中的这些行,但仍然无法正常工作。

最佳答案

sudo su    
visudo -f /etc/sudoers

在末尾添加以下行。

jenkins ALL= NOPASSWD: ALL

关于ubuntu - jenkins 使用 sudo 时出现身份验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17940612/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com