Jenkins插件ssh-agent显示“错误:无法运行ssh-add"; [英] Jenkins plugin ssh-agent showing "ERROR: Failed to run ssh-add"

查看:559
本文介绍了Jenkins插件ssh-agent显示“错误:无法运行ssh-add";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误消息错误:无法运行ssh-add" 我正在尝试SSH到远程计算机中

I getting error "ERROR: Failed to run ssh-add" I am trying to ssh into remote machine so

SSH凭证已设置 管道脚本正在调用ssh-agent 在执行作业时,我得到以下错误

SSH credential are set Pipeline script is calling ssh-agent On executing the job I get error below

我已经尝试过此报告的错误 https://issues.jenkins-ci.org/浏览/JENKINS-50181 ,但是它不起作用,并且我现在拥有的最新版本1.17中的错误已得到解决. 谁能建议如何解决此问题.

I have tried this reported bug https://issues.jenkins-ci.org/browse/JENKINS-50181 but it is not working and bug has been already resolved in latest version 1.17 which i have now. Can anyone suggest how to fix this issue.

推荐答案

这只是一个疯狂的猜测,因为这可能有不同的原因.

This is just a wild guess since this could have different reasons.

但是我只是遇到了这个错误,我的问题是,当我在詹金斯(Jenkins)中创建证书时,我忘记在输入的末尾添加linebreak.

But I just had this error, and my problem was that when I created the credential in Jenkins I forgot to add a linebreak at the end of the input.

...
...<all the usual content>...
...
-----END OPENSSH PRIVATE KEY-----<linebreak needed here>

这篇关于Jenkins插件ssh-agent显示“错误:无法运行ssh-add";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆