【问题标题】:Git(hub) keep giving `Host key verification failed` errorGithub) 一直报 `Host key verification failed` 错误
【发布时间】:2019-04-04 02:16:49
【问题描述】:

我正在尝试将 ssh-key 添加到我的 github 帐户,但我不断收到 Host key verification failed 错误。

img 网址:https://image.ibb.co/k94mT8/PDv4oQ.jpg

我已按照以下步骤操作:https://help.github.com/articles/checking-for-existing-ssh-keys/

生成新的 SSH 密钥 ssh-keygen -t rsa -b 4096 -C "your_email@example.com"


将 SSH 密钥添加到 ssh-agent eval $(ssh-agent -s)


将新的 SSH 密钥添加到您的 GitHub 帐户

并尝试了几乎所有相关的 stackoverflow 答案,但错误仍然存​​在。

我哪里做错了?

编辑:我可以使用 https 但不能使用 ssh 进行克隆。

【问题讨论】:

  • 图片不可用。请在此处重新上传或描述其内容。
  • 添加了图片网址。您现在可以检查。 @Polygnome
  • 访问链接会出现403 Forbidden 错误。未经身份验证的用户可能没有查看图像的权限。
  • @Norx 如果图像不向公众开放,该 URL 将无济于事:“403 Forbidden Request denied by Administrative rules.”
  • 很抱歉。你现在能看到吗?

标签: git github ssh


【解决方案1】:

运行该命令。这可能会解决您的问题。

ssh git@github.com -vvvv

谢谢:https://www.reddit.com/r/git/comments/8m8y56/github_keep_giving_host_key_verification_failed/dzlrvzk/

【讨论】:

    【解决方案2】:

    可能已经晚了,但无论如何。当终端询问您:“您确定要继续连接(是/否)?”时,您确定输入“是”。如果您只是按 Enter - 连接将失败

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-05
      • 1970-01-01
      • 2023-03-14
      • 2022-12-26
      • 2022-08-22
      • 2023-03-08
      • 1970-01-01
      • 2021-05-19
      相关资源
      最近更新 更多