Authentication error in jenkins on using sudo

后端 未结 2 614
轮回少年
轮回少年 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 11:55

    username ALL= NOPASSWD: ALL in sudoers worked in ubuntu server 12.04.2

    0 讨论(0)
  • 2021-01-05 12:19
    sudo su    
    visudo -f /etc/sudoers
    

    add add following line at the end.

    jenkins ALL= NOPASSWD: ALL
    
    0 讨论(0)
提交回复
热议问题