Dieser Knoten ist offline geschaltet ist, weil Jenkins Fehler beim starten der slave-agent auf ihn
Ich bin mir nicht sicher, was die richtigen Schritte sind für die Konfiguration des Jenkins-master-build/deploy diese Aufträge an einen neuen Sklaven, und wie die neue slave, aber es gibt einen Fehler. Zum Beispiel, ich muss nichts installieren auf den neuen Sklaven, oder haben irgendeine Art von setup/config? & ich bin der Konfiguration auf Ubuntu OS.
just before slave node1 gets launched ...
executing pre-launch scripts ...
[06/25/15 13:06:55] [SSH] Opening SSH connection to 192.168.4.153:22.
ERROR: Server rejected the 1 private key(s) for jenkins (credentialId:fd3affc2-25a4-4b24-9e21-275badb8b6d9/method:publickey)
ERROR: Failed to authenticate as jenkins with credential=fd3affc2-25a4-4b24-9e21-275badb8b6d9
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:408)
at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.authenticate(SSHAuthenticator.java:428)
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1173)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:701)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Decrypted PEM has wrong padding, did you specify the correct password?
at com.trilead.ssh2.crypto.PEMDecoder.removePadding(PEMDecoder.java:110)
at com.trilead.ssh2.crypto.PEMDecoder.decryptPEM(PEMDecoder.java:287)
at com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:320)
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:224)
... 11 more
[06/25/15 13:06:55] [SSH] Authentication failed.
hudson.AbortException: Authentication failed.
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1178)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:701)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:696)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[06/25/15 13:06:55] Launch failed - cleaning up connection
[06/25/15 13:06:55] [SSH] Connection closed.
Du musst angemeldet sein, um einen Kommentar abzugeben.
Dieser Artikel erklärt, wie eine Verbindung, die ein slave an den master mit der master-öffentlichen ssh-Schlüssel:
https://www.caktusgroup.com/blog/2012/01/10/configuring-jenkins-slave/
Fortsetzen:
Bitte bestätigen Sie löst Ihr Problem.
Den .ssh Verzeichnis muss die richtigen Zugriffsrechte Berechtigungen, die Gruppe und andere können nicht schreiben Berechtigungen haben.
chmod 700 ~/.ssh
sollte es funktionieren
Das wirkliche Problem in der Frage ist
Caused by: java.io.IOException: Decrypted PEM has wrong padding, did you specify the correct password?
so gibt es vielleicht Fehler in privaten Schlüssel, text oder falsche passphrase.In meinem Fall habe ich einen Fehler
PEM problem: it is of unknown type
mit Schlüssel sieht aus wie gültig:aber es ist nicht gültig, weil ich verloren habe letzten "-" Zeichen beim kopieren/einfügen private key von terminal, also die richtige form sein sollte: