【问题标题】:Adding SSH keys to Git将 SSH 密钥添加到 Git
【发布时间】:2018-03-15 09:47:04
【问题描述】:

我无法向 GitHub 添加新的 SSH 密钥,我生成的 SSH 密钥对是 id_rsaid_rsa.pub。当我尝试将这些添加到我在 GitHub 中的帐户时,我被告知密钥无效,因此我根据错误消息中给出的建议尝试了各种组合,例如 ssh-id_rsa

在 GitHub 帮助中它说:

'If you're using macOS Sierra 10.12.2 or later, you will need to modify 
your ~/.ssh/config file to automatically load keys into the ssh-agent 
and store passphrases in your keychain.'

我使用的是 Sierra 10.12.2,但我没有找到任何修改或创建 ssh/config 文件的方法,所以我认为这可能会阻止我将我的公钥添加到我的 GitHub 帐户。

任何提示将不胜感激:-)

【问题讨论】:

  • 您是如何生成 ssh 密钥的?酿造?
  • 在带有 $ssh-keygen 的终端中,我也得到了一个密钥指纹和一个随机艺术图像

标签: github macos-sierra ssh-keys


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-23
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    • 2011-03-11
    • 2021-09-06
    • 2012-07-31
    相关资源
    最近更新 更多