詹金斯:stderr:权限被拒绝(公钥)错误未解决
我已在 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:
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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您的
存储库 URL
不正确。如果您在 bitbucket 中设置了SSH
连接,那么您应该相应地使用 url。克隆
按钮。SSH
。git clone
关键字后面写的url。它会像git@.....
那应该有效。
I think your
Repository URL
is not correct. If you have setupSSH
connection in bitbucket then you should use url accordingly.clone
button ion your repository.SSH
on the top right of the dialogue being displayed.git clone
keyword. It will go likegit@.....
That should work.