🛠️ CI & CD

Jenkins 에서 SSH 접속 시 sudo 권한 사용

loose 2022. 9. 26. 01:25
반응형

에러 내용

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper Build step 'Execute shell' marked build as failure

 

SSH 접속을 위한 토큰 키와는 별개로 Jenkins로 SSH 접속 시 패스워드 입력이 필요하다는 에러가 발생

 

해결 방법

sudo visudo 혹은 sudo vim /etc/sudoers
%sudo  ALL=(ALL) ALL
이 부분을
%sudo  ALL=(ALL) NOPASSWD:ALL
로 수정

 

 

 

 

728x90