[Github] WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 에러 해결

yesjm·2023년 3월 25일
1
				@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
				@    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
				Please contact your system administrator.
				Add correct host key in .ssh/known_hosts to get rid of this message.
				Offending RSA key in .ssh/known_hosts:1
				Host key for github.com has changed and you have requested strict checking.
				Host key verification failed.
				Could not read from remote repository.
				
				Please make sure you have the correct access rights
				and the repository exists.
				Show details in console

github에 commint한 내용을 push하려고 했을때 발생한 에러
23.03.24일 github에서 RSA SSH 호스트키를 업데이트해서 발생한 에러이다.
RSA를 사용하는 SSH를 통한 Git 작업에만 영향을 미치고, ECDSA 또는 Ed25519 사용자에게는 영향이 없다고 한다.

해결방법

$ ssh-keygen -R github.com

~/.ssh/known_hosts 파일의 github.com 항목을 아래 정보로 업데이트 하면 해결된다.

github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=

.
.
.

참고
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

profile
yesjm의 개발블로그~

0개의 댓글