Authentication error in jenkins on using sudo

后端 未结 2 613
轮回少年
轮回少年 2021-01-05 11:27

I have sh script in jenkins which has sudo ssh command and I am getting this error

Warning: Identity file key.pem not accessible: Permission denied.
Host key         


        
2条回答
  •  不知归路
    2021-01-05 12:19

    sudo su    
    visudo -f /etc/sudoers
    

    add add following line at the end.

    jenkins ALL= NOPASSWD: ALL
    

提交回复
热议问题