SSH 인스턴스 연결 중 발생한 경고메시지

BinaryHyeok·2023년 3월 21일
0
post-thumbnail

개요

Warning: Permanently added '...' (RSA) to the list of known hosts.
다음과 같은 에러가 Jenkins Pipeline Script 중 SSH로 인스턴스 연결해서 수행하는 명령어를 시작하면서 발생하였다.

원인

이 문제는 Windows용으로 컴파일 된 OpenSSH 클라이언트가 ~/.ssh/known_hosts 경로의 known_host file을 확인하지 않기 때문에 생긴다고 한다.

해결방안

~/.ssh/config 파일을 만들고 다음 줄을 넣는다.
UserKnownHostsFile ~/.ssh/known_hosts


참고자료

https://stackoverflow.com/questions/9299651/git-says-warning-permanently-added-to-the-list-of-known-hosts

0개의 댓글