【问题标题】:Try to check my connection publickey error (beanstalk ssh keys)尝试检查我的连接公钥错误(beanstalk ssh 密钥)
【发布时间】:2013-10-17 00:49:33
【问题描述】:

我将使用 Git 迈出第一步。我也有一个豆茎帐户。我的 IDE 是 phpstorm。

我通过安装程序将它安装在我的 Mac 上 => /usr/local/git 已成功安装。 之后,我生成一个 ssh 密钥并复制到我的 beanstalk 帐户中。 Here's the tutorial.

The authenticity of host 'myaccount.beanstalkapp.com (204.232.132.2)' can't be established.
RSA key fingerprint is 30:9a:97:f3:19:4f:d1:6e:28:76:9e:e7:d1:df:2c:31.
Are you sure you want to continue connecting (yes/no)?

我输入了“是”,然后..

Warning: Permanently added 'myaccount.beanstalkapp.com' (RSA) to the list of known hosts.
Permission denied (publickey).

我的公钥在同一个文件夹 .ssh/beanstalk.pub

我的问题是什么?

我尝试在 phpStorm 中克隆我的存储库:

git@myaccount.beanstalkapp.com:/phpstorm_git.git

但它不起作用。

【问题讨论】:

  • git@myaccount.beanstalkapp.com/phpstorm_git.git 会更好吗? (没有':')
  • 尝试ssh -v git@myaccount.beanstalkapp.com 检查是否是 SSH 连接或存储库路径问题。
  • 检查“myaccount.beanstalkapp.com”是否已添加到~/.ssh/known_hosts...“权限被拒绝(公钥)”。这里的消息很奇怪。

标签: git ssh public-key amazon-elastic-beanstalk


【解决方案1】:

您只需键入 yes 并按 ENTER,这会将您帐户的主机名 accountname.beanstalkapp.com 添加到 known_hosts 文件中,但是当它在 ~/.ssh 中编辑 known_hosts 文件时,您将需要 sudo 权限,因此只需使用:@987654321 @

【讨论】:

    【解决方案2】:

    这可能对其他处于相同情况的人有所帮助。我有同样的问题,这篇文章帮助我解决了它。

    https://stackoverflow.com/a/20537879/3847469

    基本上,我允许 SSH 流量,但我的 beanstalk 实例与我生成的密钥对没有关联。上面的帖子描述了如何做到这一点。之后我就可以登录了。

    【讨论】:

      【解决方案3】:

      可能只是你的主机出错了,进入这个文件,然后检查你的主机 ~/.ssh/known_hosts Permission denied (publickey) when SSH Access to Amazon EC2 instance

      【讨论】:

      • 当您总结所链接的内容时,答案会更有价值。尤其是在链接失效的情况下。
      猜你喜欢
      • 1970-01-01
      • 2020-02-11
      • 2018-08-19
      • 2014-01-04
      • 2017-09-29
      • 1970-01-01
      • 2011-12-19
      • 2014-06-17
      • 2019-12-21
      相关资源
      最近更新 更多