[JIRA] (JENKINS-17366) ssh slave login via keyfile not working in 0.23

21 views
Skip to first unread message

vasu_ems@yahoo.com (JIRA)

unread,
Aug 29, 2016, 12:10:04 AM8/29/16
to jenkinsc...@googlegroups.com
Vasu Devan commented on Bug JENKINS-17366
 
Re: ssh slave login via keyfile not working in 0.23

I am using jenkins version 2.7.2. I am also facing the same issue. I am able to login using ssh through command line. But connecting to slave node from jenkins UI is not working. I tried all the options of copy paste, absolute path, from jenkins master ~/.ssh folder. I got the below error.

[08/29/16 03:59:01] [SSH] Opening SSH connection to 172.17.0.3:22.
ERROR: Server rejected the 1 private key(s) for jenkins (credentialId:f3897dd0-5808-45a5-bd3e-a7a159d6eefb/method:publickey)
ERROR: Failed to authenticate as jenkins with credential=f3897dd0-5808-45a5-bd3e-a7a159d6eefb
java.io.IOException: Publickey authentication failed.
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:315)
at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:467)
at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.doAuthenticate(TrileadSSHPublicKeyAuthenticator.java:109)
at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:415)
at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:435)
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1212)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Illegal len in DER object (1186)
at com.trilead.ssh2.crypto.SimpleDERReader.readSequenceAsByteArray(SimpleDERReader.java:136)
at com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:355)
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:224)
... 11 more
[08/29/16 03:59:01] [SSH] Authentication failed.
hudson.AbortException: Authentication failed.
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1217)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[08/29/16 03:59:01] Launch failed - cleaning up connection
[08/29/16 03:59:01] [SSH] Connection closed.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Jul 20, 2018, 2:02:03 PM7/20/18
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo stopped work on Bug JENKINS-17366
 
Change By: Ivan Fernandez Calvo
Status: In Progress Open
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Jul 20, 2018, 2:02:05 PM7/20/18
to jenkinsc...@googlegroups.com
Assignee: Kohsuke Kawaguchi Ivan Fernandez Calvo

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Jul 23, 2018, 5:17:04 AM7/23/18
to jenkinsc...@googlegroups.com

ifernandezcalvo@cloudbees.com (JIRA)

unread,
Jul 23, 2018, 5:17:05 AM7/23/18
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo closed an issue as Fixed
 

tested on 1.27

Status: Open Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages