【问题标题】:Permission denied (publickey) trying to SSH into CircleCI job尝试 SSH 进入 CircleCI 作业的权限被拒绝(公钥)
【发布时间】:2022-09-24 20:58:40
【问题描述】:

我按照此文档的步骤操作:https://circleci.com/docs/add-ssh-key#circleci-cloud-or-server-3-x

我生成了我的密钥:

ssh-keygen -m PEM -t rsa -C \"myname@myemail.com\"

我复制了.ssh/id_ed25519 的内容,进入项目设置> SSH Keys > Additional SHH Keys,并粘贴了我的Key 的内容。

但是,当我尝试 ssh 时,我收到以下错误:

ssh -p 54782 x.x.x.130

The authenticity of host \'[x.x.x.130]:54782 ([x.x.x.x]:54782)\' can\'t be established.

ED25519 key fingerprint is SHA256:xxx

This key is not known by any other names

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added \'[x.x.x.130]:54782\' (ED25519) to the list of known hosts.

myname@x.x.x.130: Permission denied (publickey).

我会感谢你的帮助。谢谢

    标签: ssh circleci


    【解决方案1】:

    您遵循的说明用于其他目的;它们是关于向项目添加 SSH 密钥,以防您需要从作业中通过 SSH 连接到远程服务器。

    如果您想SSH into your job,您需要将您在本地机器上生成的密钥添加到您的 VCS(GitHub 或 Bitbucket)帐户。

    【讨论】:

      猜你喜欢
      • 2019-11-24
      • 2014-11-08
      • 2019-03-11
      • 1970-01-01
      • 2012-07-29
      • 2019-03-08
      • 2019-08-20
      • 2016-08-13
      • 1970-01-01
      相关资源
      最近更新 更多