• SSH Key连接github提示Permission denied (publickey).错误


    root@debian64:/home/xiaoliuzi/.ssh/key_backup# ssh -T git@github.com


    The authenticity of host 'github.com (192.30.252.131)' can't be established.

    RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
    Are you sure you want to continue connecting (yes/no)?yes


    Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of known hosts.

    Permission denied (publickey).


    解决方法:

    注意先将id_rsa.pub的文件,粘贴到记事本,再添加到SSH Key中,我猜测主要原因是在粘贴过程中会有谢多余的换行或空格导致的。

    下面是我在debian7下生成的SSH Key:



    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDP3uAi2bRNRgHxbeWdDnrVGolv9vjBRcgLpA4eq7dAEQ+525xCWYXK6Oh1XAS/i91vVNcG1xQG3K7FwJRGepOTVJtnaWRPpROV5rB6DRyy1YAuw74+iYO9bh1Xudc+eP0GTmUG58SxVVVW/GSEu+SCFtoMPwzVCtiu7N5xRlJGV0Rd4USB+WdWI/iBr+Tw9VpAzC4M6WrNNhfdTt1kiI7TKiu+WFh6IJ5YIUeZAkFFJOIFJcV67GRvgLqces+Y/tK36ZmcPCErJkJhW9pJnSfR7z2KADJSG3qbop3G79QqWXbf72q0YDC4ypAfBEizXX+QSLIIlWHVZq8fAL0734aj qingpengliu@163.com





    转载本Blog文章请注明出处,否则,本作者保留追究其法律责任的权利。 本人转载别人或者copy别人的博客内容的部分,会尽量附上原文出处,仅供学习交流之用,如有侵权,联系立删。
  • 相关阅读:
    [Android学习笔记]Activity
    [Android学习笔记]Activity,View,Windows简介
    [Android]Eclipse的使用
    [Cocos2d-x]解决Android平台ndk-build时不自动删除外部库
    [Cocos2d-x]Android的android.mk文件通用版本
    [C++][STL]string记录
    nyoj-103-A+B Problem II
    nyoj-95-众数问题
    nyoj-187-快速查找素数
    nyoj-8-一种排序
  • 原文地址:https://www.cnblogs.com/drfxiaoliuzi/p/3864708.html
Copyright © 2020-2023  润新知