文章目录

batman

  1. git 无法clone
    1
    2
    3
    4
    5
    6
    7
    8
    9
    takethat@acer_v5573g MINGW32 /d/Project/Qt_project
    $ git clone git@github.com:vivatakethat/Qt_Project.git
    Cloning into 'Qt_Project'...
    Warning: Permanently added the RSA host key for IP address '192.30.255.113' to the list of known hosts.
    Permission denied (publickey).
    fatal: Could not read from remote repository.

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

解决:
添加公钥到github

  1. ssh-add报错
    1
    2
    3
    takethat@acer_v5573g MINGW32 /d/github/hexo_lifeSpring
    $ ssh-add /c/Users/takethat/.ssh/id_rsa_lifespring
    Could not open a connection to your authentication agent.

解决:请先执行
You might need to start ssh-agent before you run the ssh-add command:

1
$ eval `ssh-agent -s`

再执行

1
ssh-add

  1. clone仓库时候
    1
    2
    3
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights

解决办法:

  • 生成key
    root@t470p:~/.ssh# ssh-keygen -t rsa -C vivatakethat@foxmail.com

把key上传到github网站上

参考这片文章https://www.cnblogs.com/wmr95/p/7852832.html

文章目录