【问题标题】:Permission denied (publickey) (Tried every other solution)权限被拒绝(公钥)(尝试了所有其他解决方案)
【发布时间】:2020-10-05 08:23:46
【问题描述】:

按照herehere中Github的所有说明一步一步将SSH密钥添加到我的帐户并通过SSH连接访问它后,我仍然遇到以下错误:

ssh -T (my-user-name)@github.com
Permission denied (publickey)

我也试过step-by-step debugging of github 和这个Stackoverflow 线程。然而对我来说一切都是死胡同。我在 Mac OS Catalina 10.15.5 上运行。我错过了中间的任何一步吗?

【问题讨论】:

    标签: github ssh


    【解决方案1】:

    这个ssh -T (my-user-name)@github.com总是返回权限被拒绝。

    您永远不会请求远程安全 shell 作为“我的用户名”。

    说明将始终建议使用以下方法测试您的 SSH 连接:

    ssh -T git@github.com
           ^^^
    

    然后,您的公钥 registered to your GitHub account 就足以让 GitHub 在该 git SSH 会话中识别您。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-25
      • 1970-01-01
      • 2018-03-11
      • 2019-11-24
      • 2014-11-08
      • 2012-01-18
      • 2012-04-25
      相关资源
      最近更新 更多