OS/Linux(Ubuntu)

[Linux(Ubuntu)] SSH 오류

devsalix 2025. 6. 13. 16:58
728x90

A 서버에서 B 서버로 SSH 명령을 날리던 중 오류가 발생

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:.....
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:3
  remove with:
  ssh-keygen -f '/root/.ssh/known_hosts' -R '192.168.0.100'
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
UpdateHostkeys is disabled because the host key is not trusted.
root@192.168.0.100: Permission denied (publickey,password).​

 

위와 같이 퍼미션 오류가 뜨면서 문제가 발생

 

해당 오류는 B라는 서버가 새로 설치되면서 기존 A서버에서 가지고 있던 B의 정보 키가 바뀌면서

 

접속을 제한 걸려서 나온 증상으로

 

경고창 중간에 보이는 /root/.ssh/known_hosts 파일의 문제로

 

해당 파일을 삭제 후 재 실행하니 정상적으로 실행되는것을 확인했습니다

 

 


제 글이 도움이 되셨다면 댓글 & 공감 부탁드려요 😀

 

 

 

728x90
반응형