성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
[정성태] 저렇게 조각 코드 말고, 실제로 재현이 되는 예제 프로젝트를 압...
[정성태] Modules 창(Ctrl+Shift+U)을 띄워서, 해당 Op...
[정성태] 만드실 수 있습니다. 단지, Unity 엔진 내의 스크립트와 W...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>git - REMOTE HOST IDENTIFICATION HAS CHANGED!</h1> <p> DNS와 Port는 동일하게 맞췄지만, 호스팅 서버가 바뀐 gitlab에 대해 기존 repo를 접근했더니 이런 오류가 발생합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > c:\temp\testapp> <span style='color: blue; font-weight: bold'>git fetch origin</span> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 ECDSA key sent by the remote host is SHA256:isRS/AFCHOPqeld+Vf3zAACinVEHqC7G/xw4vfWss+U. Please contact your system administrator. Add correct host key in /c/Users/testusr/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /c/Users/testusr/.ssh/known_hosts:1 ECDSA host key for [gitlab.testrepo.com]:3550 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. </pre> <br /> 그러니까, gitlab 서버 자체의 구성은 새롭게 되었기 때문에 그것의 호스트 키가 바뀐 것입니다. 해당 호스트 키는 예전에 첫 SSH 접속 시에 다음의 (확장자가 없는) 파일에 저장되는데,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > %USERPROFILE%\.ssh\known_hosts </pre> <br /> "ECDSA host key for <span style='color: blue; font-weight: bold'>[gitlab.testrepo.com]:3550</span> has changed and you have requested strict checking."라는 오류 메시지에 보인 이름에 따라 known_hosts 파일에 다음과 같은 형식으로 있을 것입니다. <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > <span style='color: blue; font-weight: bold'>[gitlab.testrepo.com]:3550</span>,[192.168.100.50]:3550 ecdsa-sha2-nistp256 BAACE2....[생략]...CqbHM= </pre> <br /> 따라서, 저 라인을 그냥 삭제해도 되고, ssh-keygen으로 해당 항목을 삭제하는 명령어를 다음과 같이 실행해도 됩니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > c:\temp\testapp> <span style='color: blue; font-weight: bold'>ssh-keygen -R [gitlab.testrepo.com]:3550</span> # Host [gitlab.testrepo.com]:3550 found: line 1 C:\Users\testusr/.ssh/known_hosts updated. Original contents retained as C:\Users\testusr/.ssh/known_hosts.old </pre> <br /> 이후, 다시 git 명령어를 수행하면 호스트 키를 새롭게 등록하면서 정상적으로 실행이 됩니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > c:\temp\testapp> <span style='color: blue; font-weight: bold'>git fetch origin</span> The authenticity of host '[gitlab.testrepo.com]:3550 ([192.168.100.50]:3550)' can't be established. ECDSA key fingerprint is SHA256:isRS/AFCHOPqeld+Vf3zAACinVEHqC7G/xw4vfWss+U. Are you sure you want to continue connecting (yes/no/[fingerprint])? <span style='color: blue; font-weight: bold'>yes</span> Warning: Permanently added '[gitlab.testrepo.com]:3550,[192.168.100.50]:3550' (ECDSA) to the list of known hosts. remote: Enumerating objects: 31, done. remote: Counting objects: 100% (31/31), done. remote: Compressing objects: 100% (17/17), done. remote: Total 17 (delta 15), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (17/17), 2.42 KiB | 1024 bytes/s, done. From ssh://gitlab.testrepo.com:3550/testusr/testapp 6d25b791..51ff7546 master -> origin/master </pre> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
1404
(왼쪽의 숫자를 입력해야 합니다.)