Language/Git

port 22: Connection timed out

mansoorrr 2024. 4. 8. 09:11

[에러]

git clone시 ssh: connect to host github.com port 22: Connection timed out 에러 발생

방화벽에서 차단하는 경우 자주 발생

 

[해결]

~/.ssh/config에  아래 내용 추가

다시 클론하면 해결

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