WARNING: POSSIBLE DNS SPOOFING DETECTED!

2345 단어
어제 회사의 GIT 창고에서 데이터 이전을 한 번 했는데 오늘 코드를 업데이트할 때 실패했다.
localhost:project-name User$ git branch
  develop
* master
localhost:project-name User$ git pull
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for www.abc.git has changed,
and the key for the corresponding IP address 10.128.1.1
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:SE1vmakE1lKMgsO+jNW11CPnaraDarWcKaSaSs111ta.
Please contact your system administrator.
Add correct host key in /Users/User/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/User/.ssh/known_hosts:18
RSA host key for www.abc.git has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


전체적인 제시 정보는 위의 그림에서 보듯이 프라이버시 부분에 대해 단어와 숫자의 수정과 교체를 했고 대략적인 뜻을 참고하면 된다.
이것은 그리 복잡한 문제가 아니라, 비교적 흔히 볼 수 있으며, 일반적으로 서버의 맵을 수정해서 일어난 것이다.
해결 방법은 다음과 같다. 우선 다음 그림의 두 줄 코드를 찾아라. RSA host key for(여기 주소가 바로 해결해야 할 문제)
Offending RSA key in /Users/User/.ssh/known_hosts:18
RSA host key for www.abc.git has changed and you have requested strict checking.

주소 찾기 www.abc.git 이후 다음 코드를 실행합니다: ssh-keygen-R IP 주소 뒤에 포트가 있으면 포트를 추가하십시오. ssh-keygen-R IP 주소: 9090
localhost:project-name User$ ssh-keygen -R www.abc.git
# Host www.abc.git found: line 18
/Users/User/.ssh/known_hosts updated.
Original contents retained as /Users/User/.ssh/known_hosts.old

이 줄 코드를 실행한 후에 명령줄에서 같은 상호작용 알림이 있을 것이다.'yes'를 입력한 후에 해당하는 파일을 업데이트하면 성공한다. 이때 이전에 필요로 했던 조작을 다시 하면 된다. 예를 들어git pull 업데이트 코드 등이다.

좋은 웹페이지 즐겨찾기