git clone [email protected]: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

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

时间: 2024-11-05 23:36:52

git clone [email protected]:snuglove/ 报错的相关文章

How to provide username and password when run "git clone [email protected]"? - Stack Overflow

How to provide username and password when run "git clone [email protected]"? - Stack Overflow

在按照ROS官方步骤操作,同时用Git管理整个过程,git clone的新catkin_ws报错: catkin_package() include dir 'include' does not exist relative to

在按照ROS官方步骤操作,同时用Git管理整个过程,git clone的新catkin_ws报错如下: CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:302 (message): catkin_package() include dir 'include' does not exist relative to '/home/username/catkin_ws/src/beginner_tutori

git clone [email protected]:xxx.git Permission denied (publickey) 问题解决办法

From: https://www.cnblogs.com/restart/p/4633928.html 如果git无法通过普通的http去clone远程分支,可以选用ssh方式去连接.这时需要配置相应的公私钥(本地生成公私钥对儿,把公钥配置到远程git服务器上即可). 具体的错误提示如下: 要debug这个问题,可以用 ssh -vT 参数,比如下面: 解决方案: 首先要设置你的系统的公共,私有密钥(ssh-keygen) 方法: cd ~/.ssh && ssh-keygen 其次,把

IDEA GIT连接[email protected]

Git介绍请关注 廖雪峰的官方网站查看说明或是在Oschina中查看帮助 ? IDEA配置: 首先安装git for windows?推荐使用这个:http://msysgit.github.io/? 可以在任何目录 右键--git bash 弹出对应路径的 git 命令行窗口 而且启动速度比较快 在Intellij中Settings--Version Control--Git--Path to Git executable 找到安装git ?bin目录下的git.exe 1.方法一 ?适用于新

git 拉取远程分支报错(fatal: '' is not a commit and a branch '' cannot be created from it)

问题描述从远程git上拉取某一个分支,然后报错,拉取不了这个分支. 拉取分支的命令: git checkout -b xxx-static-19 origin/xxx-static-19 其中xxx-static-19是分支名. 报错 fatal: 'origin/xxx-static-19' is not a commit and a branch 'xxx-static-19' cannot be created from it 解决重新拉取数据,git pull ,然后再切回分支 git

centos6上,git拉代码时候,报错提示不支持低版本ssl的解决方法

[[email protected]_mwdb-20-25 /root ]# git clone https://github.com/pyenv/pyenv.git  报错信息如下2行: error:  while accessing https://github.com/pyenv/pyenv.git/info/refs fatal: HTTP request failed 解决方法: 需要升级下包, yum update nss curl libcurl 即可,然后再近些git clone

git push -u origin master报错src refspec master does

git push -u origin master 时候报错 src refspec master does not match any. 因为[email protected]上面没有版本分支master,首先要去到目标目录,随便git add一个文件,然后git commit -m "msg".提交到了( 在commit之前要 git config --global user.name "forai" git config --global user.email

git推送到github报错:error: The requested URL returned error: 403 Forbidden while accessing https://github.com

最近使用git命令从github克隆仓库到版本,然后进行提交到github时报错如下: [[email protected] git_test]# git push origin mastererror: The requested URL returned error: 403 Forbidden while accessing https://github.com/jsonhc/git_test.git/info/refs fatal: HTTP request failed 解决办法:参考

git笔记[email protected]

之前安装了git,用了不久就升级系统了,发现又忘记了步骤,虽然网上有很多教程,但寻找需要浪费太多的时间,由于github连接比较慢,所以使用了开源中国的托管http://git.oschina.net/,安装流程写在oneNote里. 1.首先需要安装git<a href="http://git-scm.com/download/">Git官网</a>,安装好之后会又Git GUI和Git Bash,就用命令行吧~~ 打开Git Bash,简单的配置下: 先建立