Error:git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

Reason:I choose "n" when I first excute git clone command

Solution1:reinstall git

Source:

https://blog.csdn.net/weixin_42128364/article/details/81297741

sudo apt-get purge //常规卸载

sudo apt-get autoremove // 自动清理一些程序

sudo apt-get autoclean

dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P XXX //删除不需要的配置文件

sudo apt-get update //更新本地缓存文件

Solution2: about "ssh"

man -k ssh

Solution3:

https://www.jianshu.com/p/3b56f4e6ac77

  git config --global user.name "yourname"   //设置Git的user nameemail

  git config --global user.email "youremail"

  // after these steps,生成SSH密钥

  // cd ~/.shh 查看是否已经有了ssh密钥

  ssh-keygen -t rsa -C “youremail”  // 生成密钥

DISPLAY

our identification has been saved in /home/tekkub/.ssh/id_rsa.Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.The key fingerprint is:

作者:Smallwolf_JS
链接:https://www.jianshu.com/p/3b56f4e6ac77
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

按3个回车,密码为空

最后得到了两个文件:id_rsaid_rsa.pub

在github上添加ssh密钥,这要添加的是“id_rsa.pub”里面的公钥

Your identification has been saved in /home/tekkub/.ssh/id_rsa.Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.The key fingerprint is:

作者:Smallwolf_JS
链接:https://www.jianshu.com/p/3b56f4e6ac77
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

Your identification has been saved in /home/tekkub/.ssh/id_rsa.Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.The key fingerprint is:

作者:Smallwolf_JS
链接:https://www.jianshu.com/p/3b56f4e6ac77
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

Your identification has been saved in /home/tekkub/.ssh/id_rsa.Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.The key fingerprint is:

作者:Smallwolf_JS
链接:https://www.jianshu.com/p/3b56f4e6ac77
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

The problem: somthing wrong when my computer excute the command "git clone XXXX"的更多相关文章

  1. 【error】git clone: SSL certificate problem: unable to get local issuer certificate

    报错: $ git clone https://github.XXX.git Cloning into 'XXX'... fatal: unable to access 'https://github ...

  2. git Clone SSL certificate problem: self signed certificate

    自己的git服务器遇到证书是自签的,git验证后会拒绝,此时,采用如下命令临时禁用就好 git -c http.sslVerify=false clone https://domain.com/pat ...

  3. git clone 出错SSL certificate problem, verify that the CA cert is OK.

    先调用这个 export GIT_SSL_NO_VERIFY=true 之后再执行git clone

  4. Git clone出现SSL certificate problem

    1 可以在cmd下,设置 git config --global http.sslVerify false git clone  XXX 即可. 2 TortoiseGit设置 打开TortoiseG ...

  5. 第七章 : Git 介绍 (上)[Learn Android Studio 汉化教程]

    Learn Android Studio 汉化教程 [翻译]Git介绍 Git版本控制系统(VCS)快速成为Android应用程序开发以及常规的软件编程领域内的事实标准.有别于需要中心服务器支持的早期 ...

  6. Git工作流指南:Gitflow工作流 Comparing Workflows

    Comparing Workflows The array of possible workflows can make it hard to know where to begin when imp ...

  7. git workflows

    https://www.atlassian.com/git/tutorials/comparing-workflows Comparing Workflows The array of possibl ...

  8. 从源码编译rpi的内核

    Kernel Building https://www.raspberrypi.org/documentation/linux/kernel/building.md There are two mai ...

  9. 文档整体解决方案(readthedocs、github 、sphinx)使用

    这里是总结了一下,用的工具或者平台:readthedocs.github .sphinx. 使用这三个工具即可轻松创建高效的文档管理库,可以用来翻译,水平再高一点可以写书. readthedocs 文 ...

随机推荐

  1. echart 重新加载

    myechart2.clear(); myechart2.setOption(options[1]);

  2. DreamWeaver CC 中的回车

    在Dreamweaver CC中换行有两种: 第一种是在设计视图中直接回车,对应的代码是<p>标签,即新生成一个段落. (注:在DreamWeaver CC编辑的代码中,按下回车相当于 ) ...

  3. JDK源码分析-HashMap

    一.HashMap的内部属性 1.1 成员变量 1.1.1 size: HashMap包含的KV键值对的数量,也就是我们通常调用Map.size()方法的返回值 public int size() { ...

  4. slf4j-api整合maven 工程日志配置文件

    springmvc项目 pom.xml: <dependency> <groupId>org.slf4j</groupId> <artifactId>s ...

  5. 拼接 字典序min

    给定一个字符串类型的数组strs,找到一种拼接方式,使得把所有字符串拼起来之后形成的字符串具有最低的字典序. 输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个 ...

  6. java web第一次课堂测试1

    ---恢复内容开始--- 要求如图: 本程序包括四个文件,一个显示界面的jsp文件,一个dao层文件,一个servlet层文件 一个连接数据库的文件 下面依次附上代码: 前端界面: <%@ pa ...

  7. StudentManagerSSM

    web.xml              StudentManagerSSM.rar <?xml version="1.0" encoding="UTF-8&quo ...

  8. nyoj 57

    6174问题 时间限制:1000 ms  |  内存限制:65535 KB 难度:2   描述 假设你有一个各位数字互不相同的四位数,把所有的数字从大到小排序后得到a,从小到大后得到b,然后用a-b替 ...

  9. ssh pubkey免密登陆远程主机

    二.公钥登录 每次登录远程主机都需要输入密码是很不方便的,如果想要省去这一步骤,可以利用密钥对进行连接,还可以提高安全性. 1.在本机生成密钥对 使用ssh-keygen命令生成密钥对: ssh-ke ...

  10. Centos6.X安装桌面

    1.前置环境yum -y groupinstall 'X Window System'2.桌面安装 yum -y groupinstall 'Desktop' 3.语言包yum -y groupins ...