Server

ssh-rsa 활성화 (BapPublisherException)

J1Eun 2023. 12. 18. 15:59

https://hit-sand.tistory.com/57

 

BapPublisherException 오류로 인해 검색 결과, Amazon Linux 2023 부터 ssh-rsa가 적용되지 않아 오류가 나는 것으로 확인됨.

ssh-rsa를 활성화 해주면 jenkins 에서 따로 설정하지 않아도 ssh 접속이 가능함.

 

https://stackoverflow.com/questions/65015826/jenkins-plugins-publish-over-bappublisherexception-failed-to-connect-and-initia

 

ssh-rsa 활성화

 

/etc/ssh/sshd_config 에서 PubkeyAuthentication yes 활성화, 아래줄 추가

 

# vi /etc/ssh/sshd_config

PubkeyAuthentication yes
PubkeyAcceptedKeyTypes +ssh-rsa

# service sshd restart

-- Amazon Linux 2023의 경우 아래 내용 적용
# dnf install crypto-policies-scripts
# update-crypto-policies --set LEGACY

 

서버 재시작