詹金斯:stderr:权限被拒绝(公钥)错误未解决

发布于 2025-01-15 01:22:05 字数 1010 浏览 2 评论 0原文

我已在 CENTOS 7 服务器上设置了 SSH 密钥,并且还在我的 Bitbucket 个人设置中添加了 SSH。但我仍然收到詹金斯错误:

在此处输入图像描述

虽然我已经在安装了 Jenkins 的 CENTOS 7 服务器上设置了 ssh 密钥。运行时 ssh -v [电子邮件受保护]在终端中输入命令我收到多行,似乎连接已建立 成功地。终端输出为:

在此处输入图像描述

但我仍然收到身份验证错误。

我尝试过其他解决方案,例如 Jenkins 共享库:权限被拒绝(publickey) 和<一href="https://stackoverflow.com/questions/37432519/jenkins-stderr-permission-denied-publickey-fatal-the-remote-end-hung-up-u">Jenkins:stderr:权限被拒绝(公钥)。 fatal: 远端意外挂断 但都不起作用。请帮我。

I have setup SSH key on CENTOS 7 server and also have added SSH in my Bitbucket personal settings. But still I am getting Jenkins error as:

enter image description here

Although I have setup ssh key on CENTOS 7 server where the Jenkins is installed. On running ssh -v [email protected] command in terminal I am getting a number of lines and it seems that the connection has been established successfully. The terminal output was:

enter image description here

But still I am getting authentication error.

I have tried other solutions like Jenkins Shared Library: Permission denied (publickey) and Jenkins : stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly But none of them worked. Please help me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

老旧海报 2025-01-22 01:22:05

我认为您的存储库 URL 不正确。如果您在 bitbucket 中设置了 SSH 连接,那么您应该相应地使用 url。

  • 转到 Bitbucket 并单击存储库中的克隆按钮。
  • 选择所显示对话框右上角的SSH
  • 复制git clone关键字后面写的url。它会像
    git@.....
    那应该有效。

I think your Repository URL is not correct. If you have setup SSH connection in bitbucket then you should use url accordingly.

  • Go to Bitbucket and click on clone button ion your repository.
  • Select SSH on the top right of the dialogue being displayed.
  • Copy the url written after git clone keyword. It will go like
    git@.....
    That should work.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文