본문 바로가기

Error Log

connect to host github.com port22: Operation timed out 에러

사이드 프로젝트를 하는 도중 이런 에러가 나왔다

 

몆시간째 작업을 하고 계속 add, commit, push, pull 을 하고 있었는데, 갑자기 push를 하려니까 발생했다

 

작업을 하는 도중 갑자기 이런일이 생길수가 있나 당황했으나 일단 문제를 해결해야 했기에 구글링을 했다

 

https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port

 

Using SSH over the HTTPS port - GitHub Docs

GitHub Enterprise Server users: Accessing GitHub Enterprise Server via SSH over the HTTPS port is currently not supported. To test if SSH over the HTTPS port is possible, run this SSH command: $ ssh -T -p 443 git@ssh.github.com > Hi username! You've succes

docs.github.com

https://stackoverflow.com/questions/15589682/ssh-connect-to-host-github-com-port-22-connection-timed-out

 

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

I am under a proxy and I am pushing in to git successfully for quite a while. Now I am not able to push into git all of a sudden. I have set the RSA key and the proxy and double checked them, with no

stackoverflow.com

깃허브 공식문서와 스택오버플로우를 통해 같은 내용의 해결법을 발견해서 이 방법으로 해결했다

 

~/.ssh/config  위치에

 

Host github.com
Hostname ssh.github.com
Port 443

이렇게 코드를 추가했다

 

방화벽이나 ISP가 설정한 방화벽이 port22에서 ssh 연결을 차단하면 발생하는 경우라고 한다

 

카페에서 작업을 하는 도중에 일어났는데, 블로그와 스택오버플로우를 찾아보니 카페에서 작업하는 경우에 많이 발생하는 에러인거같다