解决ssh-connect-to-host-github-com
2017-05-31 本文已影响1112人
朱小维
解决办法:(linux下)
~$ cd ~
~$ cd .ssh/
~$ touch config
在.ssh目录下创建一个config文件,输入如下内容:
Host github.com User xxx@163.com (你注册github时的邮箱,这里使用注册的用户名也行) Hostname ssh.github.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa Port 443 可以把以上内容拷到config文件里面,注意修改你的邮箱,保存并关闭