On the “Known Hosts Key Validation" agents, where you imported the key on the 
jenkins user ssh authorized keys folder or on the etc ssh authorized keys 
folder? On etc does not work.

The other error seems related with the format of the host public key, it 
should’ve something like the following algorithm+base64 key encode

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU 
GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3 
Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA 
t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En 
mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx 
NrRFi9wrf+M7Q== test@host


> El 23 abr 2018, a las 16:27, srk <srinivas...@gmail.com> escribió:
> 
> I restarted multiple times. I tried all options available "Known Hosts Key 
> Validation", "Manually Provided key Validation", etc..still get the 
> same/similar errors. I have the below messages in my WebLogic logs for 
> both..The first five are for nodes configured with "Known Hosts Key 
> Validation" while the last one is for "Manually Provided Key validation"... I 
> am able to login at server level using same ssh keys, but when invoking the 
> same using same credentials via Jenkins, it fails. 
> 
> 
> <Apr 23, 2018, 10:07:53,798 AM EDT> <Notice> <Stdout> <BEA-000000> <[04/23/18 
> 10:07:53] SSH Launch of ZZZZZZZ on ZZZZZ.ZZZ.com failed in 26 ms>
> <Apr 23, 2018, 10:07:56,873 AM EDT> <Notice> <Stdout> <BEA-000000> <[04/23/18 
> 10:07:56] SSH Launch of ZZZZZZZ on ZZZZZ.ZZZ.com failed in 2 ms>
> <Apr 23, 2018, 10:08:43,968 AM EDT> <Notice> <Stdout> <BEA-000000> <[04/23/18 
> 10:08:43] SSH Launch of ZZZZZZZ on ZZZZZ.ZZZ.com failed in 3 ms>
> <Apr 23, 2018, 10:10:43,966 AM EDT> <Notice> <Stdout> <BEA-000000> <[04/23/18 
> 10:10:43] SSH Launch of ZZZZZZZ on ZZZZZ.ZZZ.com failed in 3 ms>
> <Apr 23, 2018, 10:11:38,621 AM EDT> <Notice> <Stdout> <BEA-000000> <[04/23/18 
> 10:11:38] SSH Launch of ZZZZZZZ on ZZZZZ.ZZZ.com failed in 35 ms>
> <Apr 23, 2018, 10:12:03,299 AM EDT> <Error> <ServletContext-/jenkins> 
> <BEA-000000> <Error while serving 
> http://abc.xyz.com:1234/jenkins/computer/ZZZZZZZ/descriptorByName/hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy/checkKey
> java.lang.reflect.InvocationTargetException
>         at 
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
>         at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
>         at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
>         at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
>         at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
>         Truncated. see log file for complete stacktrace
> Caused By: java.lang.IllegalArgumentException: Key should be 2 parts: 
> algorithm and Base 64 encoded key value.
>         at 
> hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy.parseKey(ManuallyProvidedKeyVerificationStrategy.java:98)
>         at 
> hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy.access$000(ManuallyProvidedKeyVerificationStrategy.java:52)
>         at 
> hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy$ManuallyProvidedKeyVerificationStrategyDescriptor.doCheckKey(ManuallyProvidedKeyVerificationStrategy.java:120)
>         at 
> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
>         at 
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
>         Truncated. see log file for complete stacktrace
> >
> 
>> On Friday, April 20, 2018 at 9:15:04 AM UTC-4, srk wrote:
>> Hi 
>> 
>> I have deployed Jenkins 2.117 war file onto WebLogic 12.2.1.2 as a 
>> webapplication and I am able to login to the application. I want to add 
>> additional nodes (remote servers) and would like to launch them using SSH, I 
>> have ssh key setup configured between the master where the WebLogic hosting 
>> Jenkins is running and remote servers and able to connect via shell. But 
>> when I try to do the same from within the application, I keep getting the 
>> below error message on the console output. I tried searching web and other 
>> support sites, and it seems this was fixed sometime in 2017 in older 
>> releases i.e in SSH Slave Plugin 1.20. I still keep getting the same and I 
>> see the plugin version installed is 1.26 for SSH Slave.
>> 
>> Any help or pointers in right direction is appreciated.
>> 
>> Thanks
>> 
>> Warning: no key algorithms provided; JENKINS-42959 disabled
>> [04/20/18 08:39:05] [SSH] Opening SSH connection to XXX.abc.com:22.
>> ERROR: Unexpected error in launching a slave. This is probably a bug in 
>> Jenkins.
>> java.lang.NoSuchMethodError: 
>> com.trilead.ssh2.Connection.connect(Lcom/trilead/ssh2/ServerHostKeyVerifier;III)Lcom/trilead/ssh2/ConnectionInfo;
>>      at 
>> hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1324)
>>      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:831)
>>      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:820)
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>      at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>      at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>      at java.lang.Thread.run(Thread.java:748)
>> [04/20/18 08:39:05] Launch failed - cleaning up connection
>> [04/20/18 08:39:05] [SSH] Connection closed.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/jenkinsci-users/GV7kqU9zxo4/unsubscribe.
> To unsubscribe from this group and all its topics, 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/92c8f6b9-7572-4bc0-870c-bbe04a81cb4d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/1B819D14-00C8-43CA-BD00-81CB09CD1DC4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to