github如何配置ssh

1.问题:

Warning: Permanently added ‘github.com‘ (RSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

2.解析

没有SSHkey 需要使用git生成一个

  • 使用git
    右键 点击git bash here
    github如何配置ssh

  • 进入后执行

ssh-keygen -t rsa -C "邮箱号@qq.com"
  • 一直回车即可
    github如何配置ssh

  • Your public key has been saved in /c/Users/LENOVO/.ssh/id_rsa.pub
    这里告诉了你.ssh存放路径,找到 id_rsa.pub文件打开————>复制

  • 到github中添加新的SSH

    • 找到设置
      github如何配置ssh

    github如何配置ssh
    github如何配置ssh

github如何配置ssh

上一篇:windows下运行C程序,安装gcc


下一篇:HZNU-AlternatingCat 训练实录