本文主要是介绍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的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!