ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection

时间:2024-03-19 19:49:27
JEKINS构建报以下错误:

ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [xx.xx.xx.xxx]. Message [Auth fail]]]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
Finished: UNSTABLE

不能链接上对应的服务器xx.xx.xx.xxx:认证失败,一般是用户名和密码设置错误

ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection

ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection

找到对应的服务器:

点击高级设置:

ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection

修改密码

完成后点击Test Configuration 返回success就重新构建对应的项目Ok了(最好添加构建服务器时就应该做这个测试)