본문 바로가기

server

ssh 인증 에러 (Host key verification failed.)

ssh 연결시 다음과 같은 에러가 발생했을 경우에 대처하는 방법입니다.

Host key verification failed.

ssh -v 를 실행해서 자세한 로그 출력

debug1: read_passphrase: can't open /dev/tty: No such device or address
Host key verification failed.

해결방법

StrictHostKeyChecking=no 옵션을 추가하여 인증 에러를 문제없이 로그인 할 수 있다.

ssh -o StrictHostKeyChecking=no