为了账号安全,请及时绑定邮箱和手机立即绑定

连接时失败是啥情况啊

[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] 连接关闭。


正在回答

3 回答

这个方法帮了俺?

0 回复 有任何疑惑可以回复我~

配置节点时,将Host Key Verification Strategy选项勾选为Non verifying Verification Strategy。如果还报其他的错误,检查一下配置的Linux的用户名密码时否正确

https://img1.sycdn.imooc.com//5bb634070001605f13890783.jpg

2 回复 有任何疑惑可以回复我~
#1

poet_123

这个方法可以成功,赞
2018-11-25 回复 有任何疑惑可以回复我~
#2

迁就M

可以的
2018-12-26 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

连接时失败是啥情况啊

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信