解决GitHub添加sshkey仍然无法访问clone远程仓库的问题
1 ssh -v git@github.com 通过这个命令打印调试信息
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。 ebug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,rsa-sha2-512,rsa-sha2-256,ssh-dss> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/zhangjin/.ssh/id_rsa debug1: Authentications that can continue: publickey debug1: Trying private key: /Users/zhangjin/.ssh/id_dsa debug1: Trying private key: /Users/zhangjin/.ssh/id_ecdsa debug1: Trying private key: /Users/zhangjin/.ssh/id_ed25519 debug1: No more authentication methods to try. 是尝试用id_rsa的公钥来连接,但是自己上传的是id_rsa.github的东西,所以有问题 上传id_rsa.pub文件到GitHub的ssh keys列表后解决问题

更多精彩