개발

[git clone 에러] Failed to connect to github.com port 443: Connection timed out

fetal: unable to access 'https://~~~' : Failed to connect to github.com port 443: Connection timed out

 

해당 에러는 git 명령을 실행할 때 Github에 연결할 수 없음을 나타낸다. 

 

1. proxy 설정 확인

git config --global http.proxy

 

아무런 출력이 없다면 이는 전역 설정에 http.proxy 항목이 설정되어 있지 않음을 의미함.

 

 

2. proxy 서버:포트 확인

>>> echo $http_proxy
http://프록시서버:포트

 

 

3. http.proxy 설정 추가

git config --global http.proxy http://프록시서버:포트

 

 

 

3. proxy 설정 확인

git config --global http.proxy

 

다시 설정을 확인해보면 이번엔 "http://프록시서버:포트"가 뜨는 걸 확인할 수 있다.

 

+

proxy 설정 제거하기

git config --global --unset http.proxy