[08/06/18 17:52:52] [SSH] Opening SSH connection to 10.18.6.30:22. C:\Windows\system32\config\systemprofile\.ssh\known_hosts [SSH] No Known Hosts file was found at C:\Windows\system32\config\systemprofile\.ssh\known_hosts. Please ensure one is created at this path and that Jenkins can read it. Key exchange was not finished, connection is closed. java.io.IOException: There was a problem while connecting to 10.18.6.30:22 at com.trilead.ssh2.Connection.connect(Connection.java:834) 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Key exchange was not finished, connection is closed. at com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:95) at com.trilead.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:237) at com.trilead.ssh2.Connection.connect(Connection.java:786) ... 7 more Caused by: java.io.IOException: The server hostkey was not accepted by the verifier callback at com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:548) at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:790) at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:502) ... 1 more [08/06/18 17:52:53] Launch failed - cleaning up connection [08/06/18 17:52:53] [SSH] 连接关闭。
这个方法帮了俺?
配置节点时,将Host Key Verification Strategy选项勾选为Non verifying Verification Strategy。如果还报其他的错误,检查一下配置的Linux的用户名密码时否正确