I have the same problem.  I just installed jenkins for the first time and 
want to do a very simple build that requires a cvs checkout.
I have tried everything I could think of short of actually creating and 
setting up ssh public/private key authentication for the 
jenkins user (too scary) Here the email I get from jenkins:

Started by timer
Building in workspace 
<http://ws-rcrick-l:8080/job/jenkins-test-build-perl/ws/>
Using globally configured password for connection to 
':ext:iman-repo.example.com:22/usr/local/cvsroot' with username 'rcrick'
cvs checkout -P -N -D 21 Feb 2014 17:15:23 -0500 platform/perl 
ERROR: CVS Authentication failed: null
org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH 
connection failed.
        at 
org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141)
        at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374)
        at java.lang.Thread.run(Thread.java:736)
Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: 
/var/lib/jenkins/.ssh/id_rsa (No such file or directory)
        at com.jcraft.jsch.KeyPair.load(KeyPair.java:524)
        at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:389)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:370)
        at 
org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135)
        ... 2 more
Caused by: java.io.FileNotFoundException: /var/lib/jenkins/.ssh/id_rsa (No 
such file or directory)
        at java.io.FileInputStream.<init>(FileInputStream.java:123)
        at java.io.FileInputStream.<init>(FileInputStream.java:83)
        at com.jcraft.jsch.Util.fromFile(Util.java:492)
        at com.jcraft.jsch.KeyPair.load(KeyPair.java:521)
        ... 6 more
ERROR: Cvs task failed


On Thursday, July 11, 2013 2:57:22 PM UTC-7, Sameh Tawfik wrote:
>
>  
> Hi, 
>  
> I'm using Jenkins ver. 1.522
>  
> Under "Manage Jenkins\Configure System\CVS\ Authentication" , I setup CVS 
> Root, Username, and Password, but under same "CVS" section  there are these 
> fields: "Private Key Location", "Private Key Password", "Known Hosts 
> Location" which I'm not using or need, because instead I'm using the values 
> under the Authentication.
>  
> Everytime, I remove the values specified for "Private Key Location", 
> "Private Key Password", "Known Hosts Location" fields and save, when I go 
> back Jenkins is populating these values again with the same default values?
>  
> The problem everytime, Jenkins runs a build it fails with the following 
> message:
>  
> ERROR: CVS Authentication failed: null
> Caused by: 
> *com.jcraft.jsch.JSchException*<http://stacktrace.jenkins-ci.org/search?query=com.jcraft.jsch.JSchException>:
>  
> java.io.FileNotFoundException: /var/lib/jenkins/.ssh/id_dsa (No such file 
> or directory)
>
> So, how to instruct Jenkins to not to use the "Private Key Location", 
> "Private Key Password", "Known Hosts Location" fields and use instead the 
> user and password supplied?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to