Git

git remote url 변경하기 (ssh error : ssh 에서 다시 url로 변경하기)

민돌v 2021. 7. 29. 15:45
728x90

ssh로 연결해둔 git에 타임아웃 에러가 났다

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

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

갑자기..어이 없네..?

 

구글링을 해보니 port 22가 문제가 있는 듯하여

나는 url로 git push가 되지 않아 ssh로 연결해 두었지만 url remote 문제를 해결해 그냥 다시 https로 연결하기로 했다.

 

1) git remote 연결 주소 확인하기

git remote -v

 

2) git remote url 변경하기 (set)

git remote set -url origin git 주소.git

 

3) 확인

push 오류 해결 ~!

반응형