Hi Xavier,

you should not define "c:\Program Files\PuTTY\*plink.exe*". but "c:\Program 
Files\PuTTY\*plink_h.bat*".
The batch file is calling plink.exe with %1 %2 %3 and so on. The batch file 
tells your agent which key to use/keep available.
You are currently just calling the agent with an empty keystore.

*"Did you export your putty key to the openssh format ? 
Did you make your key with a passphrase ? "*

You can create your keys in different formats, denpendig on your system 
will some formats work, others not. OpenSSH is the best choice as it is 
platform independent.
Validate your key from the commandline before you start to poke around the 
system for the bug.

start -> run... -> cmd [OK] -> C:\Program Files\PuTTY\plink -l *[user name]* 
*your_server.your_domain.com*
This command will open a remote shell to the server and introduce your key 
to the server as well as the server publishes it's own key which you should 
store permanently when getting asked.

You will normally become told what the reason is if it ain't working.
This step is compulsory to get finished successfully. Any troubleshooting 
beyond this point is senseless if you can't establish the connection from 
command line.

Take care
Jan


Am Mittwoch, 9. Mai 2012 11:53:19 UTC+2 schrieb Xavier NOPRE:
>
> Hi all,
>
> Thanks for your replies and sorry for my delay to answer ...
>
> I have tried your solutions. I have installed Putty and defined a CVS_RSH 
> env variable with the path "c:\Program Files\PuTTY\plink.exe". No success 
> ...
>
> But today, I saw that Jenkins proposed me to install CVS plug-in. I do it. 
> Now, the configuration is not the same, I can see a field "Private Key 
> Location" with value "C:\Documents and Settings\Default User/.ssh/id_rsa", 
> etc ... And now, in the job console, the error is :
>
> ERROR: CVS Authentication failed: 
> nullorg.netbeans.lib.cvsclient.connection.AuthenticationException 
> <http://stacktrace.jenkins-ci.org/search?query=org.netbeans.lib.cvsclient.connection.AuthenticationException>:
>  SSH connection failed.
> ...
> Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: 
> C:\Documents and Settings\Default User\.ssh\id_rsa (Le fichier spécifié est 
> introuvable)
>
> How can I generate this key ?
>
> Thansk,
>
> Xavier
>
>
> 2012/5/3 Jan Seidel <[email protected]>
>
>> I agree on that.
>> go to manage jenkins and create a new global property.
>> name: CVS_RSH
>> value: c:\"program files"\PuTTY\plink_h.bat   (Depends on the agent you 
>> are using. with pageant you will have to enter the path and filename of 
>> plink_h.bat)
>>
>> Take care
>>
>> Am Mittwoch, 2. Mai 2012 15:10:41 UTC+2 schrieb TimP:
>>
>>> There seem to be some relevant instructions here: 
>>>
>>> http://www-d0.fnal.gov/**software/cmgt/cvs_ssh.html<http://www-d0.fnal.gov/software/cmgt/cvs_ssh.html>
>>>  
>>>
>>> you need to have an environment variable 
>>> CVS_RSH set to your ssh executable. 
>>>
>>> my guess. 
>>> Tim 
>>>
>>>
>>> On 2 May 2012 14:04, Xavier NOPRE <[email protected]> wrote: 
>>> > Hi Vincent, 
>>> > 
>>> > Thank you for your quick answer. 
>>> > 
>>> > So, I have tried with "ext", just replacing "extssh" with "ext" in my 
>>> CVS 
>>> > URL, and I have another error. Sorry, it's in french, but the error 
>>> seems to 
>>> > be with a RSH command. In the console, I can see like the help of RSH 
>>> > command and the this error : cvs [checkout aborted]: end of file from 
>>> server 
>>> > (consult above messages if any) 
>>> > 
>>> > Thanks, 
>>> > 
>>> > Xavier 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 2012/5/2 HARDION Vincent 
>>> > <vincent.hardion@synchrotron-**soleil.fr<[email protected]>>
>>> >  
>>>
>>> >> 
>>> >> Hi Xavier, 
>>> >> 
>>> >> The "extssh" tag exists only for eclipse. 
>>> >> The real type of connection for cvs is "ext". 
>>> >> 
>>> >> Best regards, 
>>> >> 
>>> >> Vincent 
>>> >> ______________________________**__ 
>>> >> From: 
>>> >> jenkinsci-users@googlegroups.**com<[email protected]>[
>>> jenkinsci-users@googlegroups.**com <[email protected]>] 
>>> >> on behalf of Xavier NOPRE [[email protected]] 
>>> >> Sent: Wednesday, May 02, 2012 2:41 PM 
>>> >> To: jenkinsci-users@googlegroups.**com<[email protected]> 
>>> >> Subject: CVS and extssh 
>>> >> 
>>> >> Hi, 
>>> >> 
>>> >> I've just installed the last version of Jenkins. I have created a 
>>> first 
>>> >> job for a Maven project. But my problem is with CVS. In Eclipse, my 
>>> CVS URL 
>>> >> is with ":extssh:" prefix. But with Jenkins, I have this error : "cvs 
>>> >> checkout: Unknown method (`extssh') in CVSROOT.". 
>>> >> 
>>> >> My server OS is Windows. I have installed cvs.exe in c:\windows. 
>>> >> 
>>> >> How can I solve this problem ? Do I have to install some CVS 
>>> extension for 
>>> >> the extssh support ? 
>>> >> 
>>> >> Thanks, 
>>> >> 
>>> >> Xavier 
>>> >> 
>>> > 
>>>
>>>
>>>
>>> -- 
>>> Tim Pizey - http://pizey.net/~timp 
>>>
>>
>

Reply via email to