Launch failed - cleaning up connection

Jenkins远程连接ssh(Linux系统)失败

关键信息:
Warning: no key algorithms provided; JENKINS-42959 disabled

Warning: no key algorithms provided; JENKINS-42959 disabled
SSHLauncher{host='192.168.45.145', port=22, credentialsId='61eab5fd-5c3f-4bc7-a794-f87136cbff5c', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=210, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[05/20/19 16:20:01] [SSH] Opening SSH connection to 192.168.45.145:22.
[05/20/19 16:20:01] [SSH] WARNING: No entry currently exists in the Known Hosts file for this host. Connections will be denied until this new host and its associated key is added to the Known Hosts file.
Key exchange was not finished, connection is closed.
java.io.IOException: There was a problem while connecting to 192.168.45.145:22
	at com.trilead.ssh2.Connection.connect(Connection.java:758)
	at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1175)
	at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:846)
	at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:833)
	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:710)
	... 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:52] [SSH]打开SSH连接到10.18.6.30:22。
C:\ Windows \ system32 \ config \ systemprofile \ .ssh \ known_hosts [SSH]在C:\ Windows \ system32 \ config \ systemprofile \ .ssh \ known_hosts中找不到已知的主机文件。请确保在此路径中创建一个并且Jenkins可以读取它。
密钥交换未完成,连接已关闭。
java.io.IOException:连接到10.18.6.30:22时出现问题
在com.trilead.ssh2.Connection.connect(Connection.java:834)
在hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1324)
在hudson.plugins.sshslaves.SSHLauncher $ 2.call(SSHLauncher.java:831)
在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)
在java.lang.Thread.run(未知来源)
引起:java.io.IOException:密钥交换未完成,连接已关闭。
在com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:95)
在com.trilead.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:237)
在com.trilead.ssh2.Connection.connect(Connection.java:786)
......还有7个
引起:java.io.IOException:验证程序回调未接受服务器hostkey
在com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:548)
在com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:790)
在com.trilead.ssh2.transport.TransportManager $ 1.run(TransportManager.java:502)
......还有1个
[08/06/18 17:52:53]发射失败 - 清理连接
[08/06/18 17:52:53] [SSH]连接关闭。

解决方案01:配置节点 - 启动方式时,选择非验证验证策略

Launch failed - cleaning up connection_第1张图片
在【 Host Key Verification Strategy】-选择【Non verifying Verification Strategy】 -【点击Save】即可!!!
Launch failed - cleaning up connection_第2张图片
翻译版本:
在【主机密钥验证策略】-选择【非验证策略】-【点击保存】即可!!!
在这里插入图片描述

解决方案02:配置节点 - 启动方式时,选择非验证验证策略

配置节点时,将主机密钥验证策略选项勾选为非验证验证策略。如果还报其他的错误,检查一下配置的Linux的用户名密码时否正确
Launch failed - cleaning up connection_第3张图片

你可能感兴趣的:(Jenkins)