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

SSH Key连接github提示Permission denied (publickey).错误的更多相关文章

  1. SSH方式登录github出现Permission denied (publickey)

    今天在公司上传了代码,回到家pull,结果竟然出现了“Permission denied (publickey)“这种东西.第一反应是key不对,可是上次明明用key登录过,不可能不对啊,难道是文件被 ...

  2. github提示Permission denied (publickey),如何才能解决?

    参考: https://my.oschina.net/u/1377923/blog/1822038 https://www.cnblogs.com/chjbbs/p/6637519.html

  3. $ ssh -T -v git@github.com_在本地用ssh连接github出错_git@github.com: Permission denied (publickey).

    $ ssh -T -v git@github.com报错: debug1: Authentications that can continue: publickey debug1: Next auth ...

  4. windows下github 出现Permission denied (publickey).解决方法

    今天在学习github的时候遇到了一些问题,然后爬了一会,找到了解决方法记录下来,以防忘记,当然能帮助别人最好啦! github教科书传送门:http://www.liaoxuefeng.com/wi ...

  5. windows下github 出现Permission denied (publickey)

    github教科书传送门:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 再学习到 ...

  6. git克隆出错 github clone Permission denied (publickey) fatal Could not read from remote repo

    原文网址:http://blog.csdn.net/feeling450/article/details/53067563 github clone "Permission denied ( ...

  7. [转载]windows下github 出现Permission denied (publickey).解决方法

      今天在学习github的时候遇到了一些问题,然后爬了一会,找到了解决方法记录下来,以防忘记,当然能帮助别人最好啦! github教科书传送门:http://www.liaoxuefeng.com/ ...

  8. github:当你想要使用VSCODE开心提交代码时,出现Git:git@github.com:Permission denied(publickey)解决方案

    当你想要使用VSCODE开心提交代码时,出现Git:git@github.com:Permission denied(publickey)弹框 图片: 原因:电脑公钥(publickey)未添加至gi ...

  9. 使用Git出现以下错误"Git@github.com: Permission denied (publickey). Could not read from remote repository."解决方案

    转载于:https://blog.csdn.net/dotphoenix/article/details/100130424 git@github.com: Permission denied (pu ...

随机推荐

  1. git生成秘钥之后同步到服务器

    现在本地生成ssh私钥和公钥 设置本地git用户配置 $ git config --global user.name "username"$ git config --global ...

  2. haproxy simple cfg

    global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy user haproxy group hap ...

  3. bitnami-redmine 安装与插件使用

    bitnami-redmine 公司要进行敏捷开发管理,选择Redmine作为管理工具. 而Redmine本身的需要的环境比较麻烦,需要安装mysql,ruby,redmine,apach. Bitn ...

  4. Remove Invalid Parentheses

    Remove the minimum number of invalid parentheses in order to make the input string valid. Return all ...

  5. sharepoint的导航开发

    2.来大体讲一下“导航” (1)全局导航 : 整个网站集的导航:(如果公司的网站有很多子网站,这时便会用到全局导航啦):贴一下主要代码: using Microsoft.SharePoint.Publ ...

  6. fork详解

    [本文链接] http://www.cnblogs.com/hellogiser/p/fork.html [代码] 下面的代码输出多少个-?  C++ Code  123456789101112131 ...

  7. flume与kafka整合

    flume与kafka整合 前提: flume安装和测试通过,可参考:http://www.cnblogs.com/rwxwsblog/p/5800300.html kafka安装和测试通过,可参考: ...

  8. 【转】.so兼容32位和64位

    本文转自:http://blog.csdn.net/fwt336/article/details/51700300 安卓的兼容性是一个很令人头疼的问题,这几天又遇到了,还好还是解决了. 我遇到的问题是 ...

  9. CodeSnippetsLibrary的使用方法

    在项目开发中,我们经常可以看到如下所示的代码: @property (nonatomic, copy) NSString *isbatchapprove; @property (nonatomic,  ...

  10. docker基础命令

    docker version                                                                                       ...