에러

Push failed Ssh: connect to host '...' port 22: Connection timed out

integerJI 2022. 6. 28. 10:30
Push failed
Ssh: connect to host '...' port 22: Connection timed out
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

 

새로운 프로젝트에서 git에 커밋을 하려고 하니 해당 에러가 나왔다 ..

 

우선 remote가 어떻게 연결 되어 있는지 확인해 보자.

 

git remote -v

 

 

알고보니 remote를 연결할 때 "Clone with SSH" 주소를 넣어 버렸던 것이었다.

 

다시 remote 삭제 후 재연결 시도

 

git remote remove origin //연결 된 remote 제거

git remote add origin 깃헙https주소 //깃헙 https의 주소 입력

git remote -v // remote 연결 확인

 

끝!