본문 바로가기
인프라/앤서블(Ansible)

[ansible] Failed to connect to the host via ssh: ssh_exchange_identification: read: Connection reset by peer

by IT맥구리나스 2023. 2. 8.

개요

- 에러내용 처리

UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh_exchange_identification: read: Connection reset by peer", "unreachable": true}

 

실제 ansible서버에서 해당 목적지로 ssh 계정명@서버아이피로 접근 시 아래와 같은 에러발생

ssh_exchange_identification: read: Connection reset by peer

 

해결방법

- /etc/hsots.allow에 아래 코드 입력

sshd: 10.10.10.10 ##ansible서버 아이피

 

반응형

댓글