git push error

심진주·2024년 10월 15일
0

Git

목록 보기
3/8
post-thumbnail

push 도중 경고 메시지가 떴다.

The authenticity of host 'github.com (20.200.245.247)' can't be established.
ED25519 key fingerprint is SHA256:~.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

에러 메시지

  • SSH 연결 시 GitHub 서버의 신원을 확인할 수 없다는 뜻으로 처음 연결하거나, 호스트 키가 변경된 경우 발생한다.

  • 계속 연결할 것인지 여부를 묻는다.

  • 여기서 YES 를 입력했더니 경고가 떴다.

Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
Connection reset by 20.200.245.247 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
  • 호스트 키가 영구적으로 추가
  • 22번 포트의 연결이 리셋 :

그런데..

fatal: Could not read from remote repository:
  • 원격 저장소에서 데이터를 읽을 수 없다는 치명적인 오류 발생. 이는 연결 문제가 발생했기 때문이다.

참고 : https://heytech.tistory.com/289

git remote update
  • 등록된 모든 원격 저장소의 정보를 최신 상태로 업데이트
git push --force --set-upstream origin main
  • push

  • 정상적으로 push 됐다.

0개의 댓글