jenkins报错\.ssh\known_hosts [SSH] No Known Hosts file was found at

131 阅读1分钟

问题

SSHLauncher{host='192.168.190.***', port=22, credentialsId='ee650067-daa2-45e3-bab5-a7b3df2f3e24', jvmOptions='/usr/java/jdk1.8.0_201', javaPath='/usr/java/jdk1.8.0_201', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=210, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[03/21/19 11:53:09] [SSH] Opening SSH connection to 192.168.190.***:22.
C:\Users\8***\.ssh\known_hosts [SSH] No Known Hosts file was found at C:\Users\w***\.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.

解法

配置节点--启动方式时,选择Non verifying Verification Strategy

image转存失败,建议直接上传图片文件

我的配置 image-1680088712438转存失败,建议直接上传图片文件