无法在詹金斯中使从节点联机

时间:2020-06-30 07:45:30

标签: jenkins ssh private-key public-key jenkins-slave

image

SSHLauncher{host='10.10.0.15', port=22, credentialsId='veera', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=210, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[06/30/20 13:12:15] [SSH] Opening SSH connection to 10.10.0.15:22.
[06/30/20 13:12:15] [SSH] SSH host key matches key in Known Hosts file. Connection will be allowed.
ERROR: Server rejected the 1 private key(s) for veera-jenkins (credentialId:veera/method:publickey)
ERROR: Failed to authenticate as veera-jenkins with credential=veera
java.io.IOException: Publickey authentication failed.
    at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:302)
    at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:451)
    at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.doAuthenticate(TrileadSSHPublicKeyAuthenticator.java:109)
    at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:436)
    at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:473)
    at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:861)
    at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:425)
    at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:412)
    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)
Caused by: java.io.IOException: PEM problem: it is of unknown type
    at com.trilead.ssh2.crypto.PEMDecoder.decodeKeyPair(PEMDecoder.java:500)
    at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:236)

0 个答案:

没有答案