解决GitHub添加sshkey仍然无法访问clone远程仓库的问题


1 ssh -v git@github.com 通过这个命令打印调试信息 

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列表后解决问题 
 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM