使用 Eclipse Neon 的 SSH 和 Egit

SSH and Egit with Eclipse Neon

我做了以下事情:

  1. 使用 PuTTY 创建了 RSA 2048,然后将 public 和私钥保存在 eclipse

  2. 建议的位置
  3. 在 github 创建了测试存储库并将 public 密钥上传到服务器

  4. 创建了一个 HelloWorld 项目并添加了一些文本文件

问题:
即使选择 Github SSH URL,我仍然收到身份验证错误消息。

我还缺少什么?

确保在 Eclipse ssh configuration

中引用正确的文件夹

并确保通过 putty 生成的密钥不是 ppk 密钥,而是 openssh 密钥 (id_rsa, id_rsa.pub)。 id_rsa.pub 内容需要在您的 GitHub 帐户中注册。

并且您的 ssh url 需要以 git@github.com 开头(而不是 yourlogin@github.com