连接到github page时连接超时

报错:

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

fatal: The remote end hung up unexpectedly

 

解决方法:(linux下)

cd ~

cd .ssh/

添加一个config文件,输入如下内容:

Host github.com
User xxxx@gmail.com
Port 443
Hostname ssh.github.com
identityfile ~/.ssh/id_rsa


443 端口是可以访问github的。
posted @ 2012-07-22 17:37  __木头鱼__  阅读(367)  评论(0编辑  收藏  举报