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

Posted snuglove

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git clone git@github.com:snuglove/ 报错相关的知识,希望对你有一定的参考价值。

[[email protected]_centos7_5 ~]# git clone [email protected]: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 [email protected]             #此处填写你的github账户,其他地方不变
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

 

以上是关于git clone git@github.com:snuglove/ 报错的主要内容,如果未能解决你的问题,请参考以下文章

(Bug终结者)npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/eve.git

git clone 太慢怎么办

git clone 单个文件夹

ssh git clone 超时

git clone时 Repository not found Windows下及Linux下

怎么安装npm?