Hi folks, I'm too experiencing this issue with authentication. We are using *pserver* access (instead of SSH) with username/password. No matter what, cvs plugin tries to connect via SSH. This is how looks my CVSROOT configuration: pserver:username@host:/cvsroot/path
Authentication and checkout works OK with tortoisecvs. Using Jenkins ver. 1.605 and CVSPlugin 2.12 This is what I'm getting if there is no id_rsa available in expected folder: 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(Unknown Source) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Users\username\.ssh\id_rsa (The system cannot find the file specified) 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: C:\Users\username\.ssh\id_rsa (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at com.jcraft.jsch.Util.fromFile(Util.java:492) at com.jcraft.jsch.KeyPair.load(KeyPair.java:521) ... 6 more ERROR: Cvs task failed Finished: FAILURE I also tried to generate my own id_rsa and put it to that directory. I simply created a private key for my machine and converted it to id_rsa. But because it's not assigned to cvs account (as we don't use SSH access), it's useless for the purpose of CVS autentication via SSH? And sure enough, Jenkins fails to authenticate to CVS with the following error: 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(Unknown Source) Caused by: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Too many authentication failures for pserver at com.jcraft.jsch.Session.read(Session.java:986) at com.jcraft.jsch.UserAuthPassword.start(UserAuthPassword.java:91) at com.jcraft.jsch.Session.connect(Session.java:463) at com.jcraft.jsch.Session.connect(Session.java:183) at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:139) ... 2 more ERROR: Cvs task failed Finished: FAILURE Is there any way to overcome this problem? Thank you in advance. Pavel -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ee1fc724-f1fc-4fcb-8647-4b563ed09479%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.