Jenkin 添加节点报错No Known Hosts file was found

/var/lib/jenkins/.ssh/known_hosts [SSH] No Known Hosts file was found at /var/lib/jenkins/.ssh/known_hosts. Please ensure one is created at this path and that Jenkins can read it.
/var/lib/jenkins/.ssh/known_hosts 存了是已经接受SSH key认证的目标节点,由于创建节点时这个Host Key Verification Strategy 校验策略默认设置的是只链接已知Host,于是对未知的Host直接报错了,开启不验证等连接上再切回这个策略就可以解决
Jenkin 添加节点报错No Known Hosts file was found_第1张图片
Jenkin 添加节点报错No Known Hosts file was found_第2张图片

你可能感兴趣的:(Java,jenkins)