在jenkins上获得身份验证失败

时间:2015-10-01 06:44:41

标签: jenkins hudson jenkins-cli

使用jenkins cli时,我突然开始出现下一个错误:

>java -jar <path to jenkins-cli>/jenkins-cli.jar -s <jenkins url> build <job name>
Exception in thread "main" java.io.EOFException
        at java.io.DataInputStream.readBoolean(DataInputStream.java:244)
        at hudson.cli.Connection.readBoolean(Connection.java:95)
        at hudson.cli.CLI.authenticate(CLI.java:634)
        at hudson.cli.CLI._main(CLI.java:474)
        at hudson.cli.CLI.main(CLI.java:384)
我做错了什么?使用Jenkins ver。 1.567

2 个答案:

答案 0 :(得分:0)

看起来像this issue。该问题的部分内容已在Jenkins 1.617中得到修复,因此升级可能有所帮助,但仍有报告称问题仍然存在&#34;当使用密钥但身份验证被禁用时#34;。

答案 1 :(得分:0)

您如何向服务器进行身份验证?

如果您使用的是公钥私钥身份验证。强烈建议您使用

生成一个新的

SSH Key gen供您参考

bash-4.1$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/users/xxxx/.ssh/id_rsa):
JenkinsCLI
Enter passphrase (empty for no passphrase):(leave blank)
Enter same passphrase again:(leave blank)
Your identification has been saved in JenkinsCLI.
Your public key has been saved in JenkinsCLI.pub.
The key fingerprint is:
f6:4c:be:fc:cb:cd:d3:ee:8c:80:26:a2:57:df:67:14 xxxxx@xxxxxx
The key's randomart image is: