❗️Error

git push ssh: connect to host github.com port 22: Connection timed out 에러

hellohailie 2024. 5. 30. 10:45

 

✔️ 에러 코드

git push ssh: connect to host github.com port 22: Connection timed out

 

 

 

✔️ 해결 방법

 

1. 현재 git remote 연결 주소를 확인한다. 

git remote -v

 

아래처럼 나온다. 

origin  git@gitlab.com:프로젝트 경로/test.git (fetch)
origin  git@gitlab.com:프로젝트 경로/test.git (push)

 

 

2. git remote url을 변경한다. 

git remote set-url origin https://gitlab.com/프로젝트 경로/test.git

 

3. git push

git push origin

 

 

 

😃 잘못된 개념 전달이 있다면 댓글 부탁드립니다. 저의 성장에 큰 도움이 됩니다🤓