본문 바로가기
에러 핸들링

ssh: connect to host github.com port 22: Operation timed out

by kdohyeon (김대니) 2023. 5. 4.
반응형

에러 현상

  • git fetch 명령어를 실행했는데, 연결이 되지 않는 이슈

에러 메시지

ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.

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

갑자기 왜 안되는거..

해결 방법

  • 아래 코드를 ~/.ssh/config 파일에 넣어주면 된다.
Host github.com
  Hostname ssh.github.com
  Port 443

추가해주면 해결!
해결!

참고 자료

반응형

댓글