安装在win10环境下的Jenkins添加本地虚拟机centos7作为从机遇到的问题,报错:SSH Connection failed with IOException: "Key exchange

2023-05-16

首先声明我的Jenkins版本是:2.31版。因为不同版本页面有所不一样

安装在win10环境下的Jenkins添加本地虚拟机centos7作为从机遇到的问题,报错情况如下:

Searching for 192.168.0.104 in C:\Users\fushaolei\.ssh\known_hosts Searching for 192.168.0.104:22 in C:\Users\fushaolei\.ssh\known_hosts [04/16/20 10:04:31] [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. SSH Connection failed with IOException: "Key exchange was not finished, connection is closed.", retrying in 15 seconds. There are 3 more retries left.

Searching for 192.168.0.104 in C:\Users\fushaolei\.ssh\known_hosts
Searching for 192.168.0.104:22 in C:\Users\fushaolei\.ssh\known_hosts
[04/16/20 10:04:46] [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.
SSH Connection failed with IOException: "Key exchange was not finished, connection is closed.", retrying in 15 seconds. There are 2 more retries left.
Searching for 192.168.0.104 in C:\Users\fushaolei\.ssh\known_hosts
Searching for 192.168.0.104:22 in C:\Users\fushaolei\.ssh\known_hosts
[04/16/20 10:05: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.
SSH Connection failed with IOException: "Key exchange was not finished, connection is closed.", retrying in 15 seconds. There are 1 more retries left.
Searching for 192.168.0.104 in C:\Users\fushaolei\.ssh\known_hosts
Searching for 192.168.0.104:22 in C:\Users\fushaolei\.ssh\known_hosts
[04/16/20 10:05:16] [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.
ERROR: Connection is not established!
java.lang.IllegalStateException: Connection is not established!
	at com.trilead.ssh2.Connection.getRemainingAuthMethods(Connection.java:988)
	at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPasswordAuthenticator.canAuthenticate(TrileadSSHPasswordAuthenticator.java:82)
	at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:218)
	at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:171)
	at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:863)
	at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:435)
	at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:422)
	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)
[04/16/20 10:05:31] Launch failed - cleaning up connection
[04/16/20 10:05:31] [SSH] 连接关闭。
Warning: no key algorithms provided; JENKINS-42959 disabled
SSHLauncher{host='192.168.0.104', port=22, credentialsId='127de773-8c6b-44c6-a4cc-61ba8e7a3202', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[04/16/20 10:05:31] [SSH] Opening SSH connection to 192.168.0.104:22.
Searching for 192.168.0.104 in C:\Users\fushaolei\.ssh\known_hosts
Searching for 192.168.0.104:22 in C:\Users\fushaolei\.ssh\known_hosts
[04/16/20 10:05:31] [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.
SSH Connection failed with IOException: "Key exchange was not finished, connection is closed.", retrying in 15 seconds. There are 10 more retries left.
Searching for 192.168.0.104 in C:\Users\fushaolei\.ssh\known_hosts
Searching for 192.168.0.104:22 in C:\Users\fushaolei\.ssh\known_hosts
[04/16/20 10:05:46] [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.
SSH Connection failed with IOException: "Key exchange was not finished, connection is closed.", retrying in 15 seconds. There are 9 more retries left.

报错图如下:

 

这是为什么呢?同学们?那么问题来了,

其实很简单啦!你有一个配置配置错了,所以才会如此!

解决方案如下:

出现这个问题的根本在这个节点配置位置!如下图所示:

 

大家可以看哦,上面这个设置页面里面的启动方式只有Launch Agents Via SSH选项,而没有Launch slave Agents Via SSH选项,最后导致我只选了Launch Agents Via SSH选项和Host Key Verification Strategy的know hosts file version strategy选项。这样就会报错了,不知道为什么新版的Jenkins启动方式里面没有Launch slave Agents Via SSH,但是问题也很好解决!大家只需要把Host Key Verification Strategy选项改选为Non verifying Vervification Strategy就可以解决这个问题了!最后配置为如下图所示:

大家照着这个页面布置一下就没问题了!大可以放心!!!

下面是运行成功的代码控制台:

SSHLauncher{host='192.168.0.104', port=22, credentialsId='127de773-8c6b-44c6-a4cc-61ba8e7a3202', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[04/16/20 10:26:13] [SSH] Opening SSH connection to 192.168.0.104:22.
[04/16/20 10:26:13] [SSH] WARNING: SSH Host Keys are not being verified. Man-in-the-middle attacks may be possible against this connection.
[04/16/20 10:26:13] [SSH] 认证成功。
[04/16/20 10:26:14] [SSH] The remote user's environment is:
BASH=/usr/bin/bash
BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_EXECUTION_STRING=set
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="2" [2]="46" [3]="1" [4]="release" [5]="x86_64-redhat-linux-gnu")
BASH_VERSION='4.2.46(1)-release'
DIRSTACK=()
EUID=0
GROUPS=()
HOME=/root
HOSTNAME=localhost.localdomain
HOSTTYPE=x86_64
ID=0
IFS=$' \t\n'
LANG=en_US.UTF-8
LESSOPEN='||/usr/bin/lesspipe.sh %s'
LOGNAME=root
MACHTYPE=x86_64-redhat-linux-gnu
MAIL=/var/mail/root
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PIPESTATUS=([0]="0")
PPID=4246
PS4='+ '
PWD=/root
SELINUX_LEVEL_REQUESTED=
SELINUX_ROLE_REQUESTED=
SELINUX_USE_CURRENT_RANGE=
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
SSH_CLIENT='192.168.0.101 14404 22'
SSH_CONNECTION='192.168.0.101 14404 192.168.0.104 22'
TERM=dumb
UID=0
USER=root
XDG_RUNTIME_DIR=/run/user/0
XDG_SESSION_ID=11
_=/etc/bashrc
[04/16/20 10:26:14] [SSH] Checking java version of /root/.jenkins/jdk/bin/java
Couldn't figure out the Java version of /root/.jenkins/jdk/bin/java
bash: /root/.jenkins/jdk/bin/java: No such file or directory

[04/16/20 10:26:14] [SSH] Checking java version of java
[04/16/20 10:26:14] [SSH] java -version returned 1.8.0_242.
[04/16/20 10:26:14] [SSH] Starting sftp client.
[04/16/20 10:26:14] [SSH] 正在拷贝最新版本的 remoting.jar...
Source agent hash is E5FEC468D6F172BF394E1F2571EA686C. Installed agent hash is E5FEC468D6F172BF394E1F2571EA686C
Verified agent jar. No update is necessary.
Expanded the channel window size to 4MB
[04/16/20 10:26:14] [SSH] Starting agent process: cd "/root/.jenkins" && java  -jar remoting.jar -workDir /root/.jenkins -jar-cache /root/.jenkins/remoting/jarCache
Apr 15, 2020 10:27:09 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /root/.jenkins/remoting as a remoting work directory
Apr 15, 2020 10:27:09 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
INFO: Both error and output logs will be printed to /root/.jenkins/remoting
<===[JENKINS REMOTING CAPACITY]===>channel started
Remoting version: 4.3
This is a Unix agent
Evacuated stdout
Agent successfully connected and online

下面是连接虚拟机成功的图片:

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

安装在win10环境下的Jenkins添加本地虚拟机centos7作为从机遇到的问题,报错:SSH Connection failed with IOException: "Key exchange 的相关文章

  • 串口通讯原理

    串口是计算机上一种非常通用设备通信的协议 xff08 不要与通用串行总线Universal Serial Bus或者USB混淆 xff09 大多数计算机包含两个基于RS232的串口 串口同时也是仪器仪表设备通用的通信协议 xff1b 很多G
  • 车载VSLAM与激光雷达方案

    基于VSALM在计算机视觉领域的领先技术 xff0c 提供优异的视觉目标检测功能 提供前视视觉感知 xff0c 环视视觉感知以及APA系统的一站式ADAS功能解决方案 基于激光与视觉检测的融合结果 xff0c 覆盖更为广泛的应用场合 从特征
  • STL容器的适用情况和缺点

    61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
  • win7与深度(Deepin)linux 双系统启动顺序调整

    一台win7电脑 xff0c 安装deepin系统后 xff0c 默认启动是系统是Deepin 电脑开机后进入启动页面 前2项为Deepin的启动引导 xff0c 第3项是Win7的启动引导 每次启动想进入Win7都需要手动选择 xff0c
  • LDA学习笔记3-抽样算法

    抽样的基本问题是 xff0c 对于给定目标概率p xff08 x xff09 xff0c 如何抽取一组满足该分布的变量 在某些问题中可能还有别的约束条件 xff0c 如iid等 基本的抽样算法有 1 基本方法 基本思路通过函数变换将一个均匀
  • Python3+PyQT5+Pyserial 实现简单的串口工具

    练手项目 xff0c 先上图 先实现一个简单的串口工具 xff0c 为之后的上位机做准备 代码如下 xff1a 代码 github 地址 xff1a https github com ColinFred Pyserial Demo pyse
  • 1.定义一个TestList类要求如下 (1)利用List接口和泛型新建一个ArrayList对象list,要求为String类型; (2)list添加“China”,“Usa”,“India”,“J

    1 定义一个TestList类要求如下 xff08 1 xff09 利用List接口和泛型新建一个ArrayList对象list xff0c 要求为String类型 xff1b xff08 2 xff09 list添加 China xff0
  • 项目篇:移动平台机械臂视觉定位抓取实施(基于ROS架构)

    ROS包内容 xff1a 代码暂不公开 这篇日志的目的是快速项目实施 xff0c 所以详细的部分会不断补充 举例如下 xff1a 项目包1 xff1a 项目地址 Pylon Camera Aruco ros AUBO Robot 大寰机械手
  • 查看rospackage包的依赖

    rospack libs only l my package
  • 转载:Snorkel - 可编程的数据标注神器

    我知道你已经用上了最先进的深度学习模型 xff0c 不过 xff0c 还在人工标注数据吗 xff1f 这有点过时了 xff01 快来了解下Snorkel 最新的基于弱监督学习的大规模训练数据标注神器 现在的机器学习尤其是深度学习模型很强大
  • ubuntu16.04使用阿路比-LPMS-IG1进行ros数据发布

    官方资料下载 https www alubi cn support download 这个是ros包下载地址 https bitbucket org lpresearch openzenros src master 这个包比较坑 xff0c
  • C++总结1-vector的指针

    在使用vector的时候犯了一个导致编译错误 xff0c 在这里记录一下 vector是非常常见也非常好用的容器 xff0c 但是vector的指针有一些特殊 如果想要获得vector的数组的指针 xff0c 我找到了两种方法 amp ve
  • Unity项目关闭Debug.Log没有Log

    接手的项目打包后没有记录自定义Log 卧槽 xff0c 这我怎么debug 搜索了一堆都只有说怎么关闭 xff0c 没什么怎么打开的 以至于我明明加了Andrid关键词还有说设置Use Player Log的 换了个关键词搜索怎么关闭 xf
  • 发行商提供证书打包iOS时 遇到的若干问题

    No signing certificate ios Development found No ios Development signing certificate matching 开发和发布总共收到了2个 p12文件 xff0c 另外
  • RPGMakerMV接入Greenworks,以支持steamworks API

    RPGMaker MV的基本原理 在查看Greenworks的github页面时有提到NW JS xff0c 实际上RPGMakerMV部署好的工程就是基于NW JS运行的 在根目录下的Game exe实际上可以用网上下载的NW exe替代
  • MBP合上盖子后仍反复自动唤醒

    现象 每天早上起来电脑都有点温度 xff0c 明明一直合着盖子但总是隔了几天就没电了 在办公室的时候开着steam就看到提示家里的笔记本可以远程流传输 通过休眠命令查看 xff0c 几乎每10分钟就有一条唤醒记录 大部分唤醒理由是 xff0
  • MAC 关闭office软件自动更新提示 (Microsoft AutoUpdate)

    参考 xff1a https blog csdn net weixin 42873928 article details 115936349 sudo chmod 000 Microsoft AutoUpdate app 执行的功能是设置文
  • git 出现 “fatal: The remote end hung up unexpectedly“

    情况 xff1a 有台两年没开的电脑长期没有更新git等工具版本 xff0c clone跟checkout的时候都有报这个问题 实际上没注意到git lfs filter process git lfs command not found这
  • VSCode智能补全代码片段技巧

    小技巧 foreach的代码片段中没有快速建议智能建议不优先推荐代码片段 xff08 试过也不大行 xff09 foreach的代码片段中没有快速建议 通过快速建议输入一个foreach之类的代码片段 xff0c 保持tab键可以切换输入位
  • Windows下搭建局域网内简易git服务器

    这里写自定义目录标题 概述配置步骤1 任意位置创建git 仓库2 启动Git Daemon3 其他电脑克隆工程4 开机自动启动5 其他配置注意事项 概述 由于和朋友小规模制作项目 xff0c 又使用了UE5这样的庞然大物 xff0c 准备整

随机推荐

  • 如果OpenStack给虚机自动分配的ip和其他静态配置的ip重复了怎么办

    1 查找你要修改ip地址的网卡id root 64 node 1 neutron port list 2 允许ip地址为10 10 1 56通过 root 64 node 1 neutron port update 4e79200f ac5
  • Lisp笔记

    变量 动态变量 defvar defparameter span class token punctuation span span class token car dafvar span paraname default value sp
  • MSDK接入 中的各种问题

    检查顺序 包名注意一下 Unity报 Found plugins with same names Found plugins with same names Assets Msdk BuglyPlugins Android libs bug
  • C++ Windows 窗体程序入门 - 1.你的第亿个窗体程序

    前言 43 学Windows窗体已经有一段时日了 xff0c 奈何没有什么浅显易懂 amp 便宜 xff01 xff01 的书籍 就想来 算是记笔记吧 顺便还能给你们总结一些经验 注 有许多内容源于我看过的一些视频 比如Chili和Cher
  • CSS替换元素和非替换元素

    根据是否可以通过修改某个属性值更改元素呈现的内容 xff0c 可以分为替换元素和非替换元素 替换元素 以下元素都是可替换元素 xff0c 以及在各种浏览器下的默认display值 xff08 图片来源 CSS世界 张鑫旭 xff09 针对
  • SD-WAN加速保障跨国公司数据传输质量

    很多企业开启国际化业务 xff0c 跨国文件传输越来越频繁 xff0c 而且随着业务的开展 xff0c 公司规模的扩张 xff0c 很多企业都在海外设置了分支机构 不得不说 xff0c 随着经济一体化的进程不断加快 xff0c 企业跨国经营
  • 零基础视觉SLAM(一)

    文章目录 SLAM简介什么是SLAM xff1f 传感器VSLAM架构视觉里程计后端优化 SLAM应用自学参考书预备知识 SLAM简介 什么是SLAM xff1f SLAM从本质上来说它要实现的就是通过传感器去实时地估计自身位置及经过的轨迹
  • 关于Proxmox 5.x的国内有效镜像源

    官网的 http download proxmox com 有多慢我就不提了 xff0c 否则大家也不会看到这篇小文 首先需要分清楚Proxmox VE的镜像构成 1 xff09 Debian自身 这个用国内哪个镜像都可以 xff0c al
  • 多线程是否真的有必要?

    一点疑问 相比大家在投简历 面试等等过程中 xff0c 或多或少会遇到这么一个问题 xff1a 熟悉掌握多线程开发 xff1b 谈谈你对多线程的认识 其实 xff0c 我有这么一个疑问 xff0c 那就是多线程真的有必要么 xff1f 根据
  • stm32无法烧录问题分析

    1 开始能烧录 xff0c 烧录程序后就不能烧录了 原因 xff1a 升级接口IO被代码修改应用 xff0c 导致无法烧录 xff0c 解决办法 xff1a 可以让MCU进入升级模式 xff08 拉高boot0 xff0c 然后复位MCU
  • 【Git】msysgit + TortoiseGit:在 windows 上安装配置版本控制工具 Git 图形化使用

    msysgit 43 TortoiseGit xff1a 在 windows 上安装配置版本控制工具 Git 图形化使用 一 安装说明 Git 是 Linux Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控
  • Slickedit使用记录

    Slickedit使用记录 一 快捷键二 问题和解决方法 一 快捷键 已经习惯了android studio 中的快捷键 xff0c 在slickedit上也做下修改Tools gt options gt Keyboard and mous
  • 查看.Net源代码vs版本号

    方法 xff1a 用记事本打开vs项目的 sln文件 第2行就是这个源代码包的开发软件vs版本号了 Microsoft Visual Studio Solution File Format Version 9 00 Visual Studi
  • Docker: GUI 应用,Ubuntu 上如何运行呢?

    操作系统 Ubuntu 18 04运行镜像 continuumio anaconda3 based on debian Step 1 安装 Docker span class token comment update the apt pac
  • 网络爬虫详细设计方案

    目录 网络爬虫设计方案 1 网络爬虫简介 2 Java爬虫的开发和使用流程 2 1 下载 2 2 分析 3 单点登陆与Jsoup解析 3 1 单点登陆简介 3 1 1 登陆 3 1 2 注销 3 2 Jsoup网页解析 4 网络爬虫详细设计
  • 安装 python-dev 的时候,缺少依赖关系

    sudo aptitude install python dev报错 xff1a 下列软件包有未满足的依赖关系 xff1a python dev 依赖 libpython dev 61 2 7 5 5ubuntu3 但是它将不会被安装 依赖
  • maven-replacer-plugin 静态资源打包方案js css

    解决问题 xff1a 防止浏览器缓存 xff0c 修改js css后无效 xff0c 需要强刷 两种解决方案 xff1a 1 不依赖插件 xff0c 纯代码实现 1 1 实现拦截处理器 xff1a ModelAndViewIntercept
  • 简单FTP构建及访问

    使用2台RHEL6虚拟机 xff0c 其中一台作为vsftpd服务器 xff08 192 168 4 5 xff09 另外一台作为测试用的Linux客户机 xff08 192 168 4 205 xff09 在RHEL6系统中 xff0c
  • freertos程序死机原因

    一 开机死机原因 1 一般是某任务栈溢出所致 栈溢出一般有两个原因 xff1a 1 此任务函数的代码量太大 或调用了某个比较大的函数 2 此任务的函数内有比较大的局部变量的数组 调试方法 xff1a 1 先关闭所有任务再逐个打开 xff0c
  • 安装在win10环境下的Jenkins添加本地虚拟机centos7作为从机遇到的问题,报错:SSH Connection failed with IOException: "Key exchange

    首先声明我的Jenkins版本是 xff1a 2 31版 因为不同版本页面有所不一样 安装在win10环境下的Jenkins添加本地虚拟机centos7作为从机遇到的问题 xff0c 报错情况如下 xff1a Searching for 1