码迷,mamicode.com
首页 > 其他好文 > 详细

git clone git@github.com:snuglove/ 报错

时间:2019-04-07 18:10:12      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:nec   报错   bsp   账户   remote   .com   config文件   tor   host   

[root@qc_centos7_5 ~]# git clone git@github.com:snuglove/Job-hunting-related.git
Cloning into Job-hunting-related...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

在/root/.ssh/添加config文件后解决

vim  /root/.ssh/config 内容如下:

Host github.com
User snuglovecn@gmail.com             #此处填写你的github账户,其他地方不变
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

 

git clone git@github.com:snuglove/ 报错

标签:nec   报错   bsp   账户   remote   .com   config文件   tor   host   

原文地址:https://www.cnblogs.com/snuglove/p/10666224.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!