티스토리 뷰



맥 ssh 를 이용한 원격 쉘 접속을 할때 갑자기 아래와 같은 메세지를 만나며 접속이 되지 않는 경우가 있다.


iyeong-uui-MacBook-Pro:~ meongchong-ja$ ssh xxxxxxx...


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

The RSA host key for [xxxxxx]:xxxx has changed,

and the key for the corresponding IP address []:

is unknown. This could either mean that

DNS SPOOFING is happening or the IP address for the host

and its host key have changed at the same time.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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 RSA key sent by the remote host is

SHA256:auVwFvoBwLFNC49cB78fH9dcLfeifDKKF9vALR8r87g.

Please contact your system administrator.

Add correct host key in /Users/meongchong-ja/.ssh/known_hosts to get rid of this message.

Offending RSA key in /Users/meongchong-ja/.ssh/known_hosts:7

RSA host key for [mtel1.efonia.com]:60011 has changed and you have requested strict checking.

Host key verification failed.


잘 접속되던 곳인데..? 갑자기 안됨

찾아보니까...


내가 원래 접속하려던 곳을 찾아가서.. RSA host key 를 비교해보니 이 키가 내가 가지고 있는것이랑 조금 다르더라, Spoofing 이 의심된다.. 


이런 내용이다. 


즉, 중간공격이 있을수 있으니 접속을 차단한다 조심해라 

이런내용이다. 


이런경우는 보통, 


  1. 목적지 서버가 재설치 되었다.
  2. 목적지 서버가 다른 서버로 교체되었다.
  3. 정말로 중간자 공격이 있어서 내가 의도하지 않은 다른 곳으로 접속되었다.


3번을 제외하고는 서버 운영자가 의도한 것이니, 

접속을 시도하려는 내쪽(Client)에서 해당 서버에 대한 키를 제거한 후, 

다시 접속을 시도하면 된다.


보통 앵간한 곳들을 찾아보니 아래와 같이 하면 된다고 한다.

ssh-keygen -R [IP or Host name]


나는 안돼

아래처럼 나와


Host x.xxxxx.xxx not found in /Users/xxxx/.ssh/known_hosts


호스트를 찾을 수 없다고 한다.


이럴 경우 내가 /Users/xxxx/.ssh/known_hosts 를 직접 들어가서 해당 호스트에 해당하는 줄을 지워주면 된다.







'Computer' 카테고리의 다른 글

OS 점유율 (인터넷 접속 통계로 본)  (0) 2017.03.20
인터넷 브라우저 점유율  (0) 2017.03.17
(지메일) Gmail 스팸 해제하는 법  (0) 2016.12.13
O2O 서비스란?  (0) 2016.11.21
(USB Drive) USB 용량 이상 (6MB)  (0) 2016.08.25
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함