Probably you need to generate new ssh keys:
https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/#fate-315806 

1024bit DSA key are disabled.

Björn

Am Donnerstag, 2. März 2017 17:31:09 UTC+1 schrieb sekar:
>
> Hi, Did you find any solution. please share if you have solutions. thank 
> you- chandru
>
> On Friday, May 6, 2016 at 4:10:10 PM UTC+5:30, Stefan Gehrig wrote:
>>
>> Hi
>>
>> I can't manage to run a slave jenkins job on SUSE SLES 12. I got the 
>> error:
>>
>> [05/06/16 11:51:12] [SSH] Opening SSH connection to pnsapp01-x:22.
>> Key exchange was not finished, connection is closed.
>> ERROR: Unexpected error in launching a slave. This is probably a bug in 
>> Jenkins.java.lang.IllegalStateException 
>> <http://stacktrace.jenkins-ci.org/search?query=java.lang.IllegalStateException>:
>>  Connection is not established!
>>      at 
>> com.trilead.ssh2.Connection.getRemainingAuthMethods(Connection.java:1030) 
>> <http://stacktrace.jenkins-ci.org/search/?query=com.trilead.ssh2.Connection.getRemainingAuthMethods&entity=method>
>>      at 
>> com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.getRemainingAuthMethods(TrileadSSHPublicKeyAuthenticator.java:88)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.getRemainingAuthMethods&entity=method>
>>      at 
>> com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.canAuthenticate(TrileadSSHPublicKeyAuthenticator.java:80)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.canAuthenticate&entity=method>
>>      at 
>> com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:207)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance&entity=method>
>>      at 
>> com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:169)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance&entity=method>
>>      at 
>> hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1212) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.sshslaves.SSHLauncher.openConnection&entity=method>
>>      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.sshslaves.SSHLauncher$2.call&entity=method>
>>      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.sshslaves.SSHLauncher$2.call&entity=method>
>>      at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
>> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method>
>>      at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method>
>>      at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method>
>>      at java.lang.Thread.run(Thread.java:745) 
>> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method>
>> [05/06/16 11:51:12] Launch failed - cleaning up connection
>> [05/06/16 11:51:12] [SSH] Connection closed.
>>
>>
>>
>> First of all, here what I already did or have:
>>
>>
>>
>>    - I got serveral other Slave Jobs to SLES 11, which are working fine. 
>> Same ssh key.
>>    - I checked the ssh key and it fits (compared to the other running 
>> slaves).
>>    - I managed to open a ssh connection manually with "ssh user@server" via 
>> ssh key to SLES 12. So it rather can't be something in ssh.config or 
>> sshd.config, I asume. Also the firewall must be open. Let's say SSH is 
>> generally working fine via ssh key.
>>    - I "patched" JAVA with "Java Cryptography Extension (JCE) Unlimited 
>> Strength" on both, master and slave. Java version is 1.8.0_92. I made a test 
>> with TestJCE and got JCE Supported=true on both, master and slave.
>>    Still no success.
>>    - I updated all Jenkins Plugins. My Jenkins version is 1.642.3.
>>
>> I'm really running out of what I can try next.
>>
>> Does anyone have an idea?
>>
>> Cheers
>> Stefan
>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/79ee4dc4-eb74-4a66-b05b-439a6f9b6bc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to