본문 바로가기

IT

[github] WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

반응형
				@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
				@    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

commit 후에 push 하려는데 뙇! 위와 같은 warning 이 발생하면서 push 가 안될 경우.

 

ssh-keygen -R github.com

# Host github.com found: line 7
~/.ssh/known_hosts updated.
Original contents retained as ~/.ssh/known_hosts.old

위와 같이 입력하면 해결~

 

반응형