• 解决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列表后解决问题 
     
  • 相关阅读:
    贮油点问题(C++)
    二维数组操作
    二的幂次方(递归)
    [haoi2009]巧克力
    距离最远的牛
    ssh注解basedao简单的实现
    @service中构造方法报错
    spring注解 构造函数问题
    json与gson
    AsyncTask异步类的简单操作
  • 原文地址:https://www.cnblogs.com/QuestionsZhang/p/10848003.html
Copyright © 2020-2023  润新知