服务器生成了private key,jenkins 配置ssh测试报错,如下图

问题

想把npm run build打包后的dist文件放到nginx目录下

private key
image.png

jenkins测试报错
image.png

其它

jenkins和nginx在同一台服务器,我想在构建的时候直接把打包后的文件复制到nginx下,提示没有权限

\+ cd dist
+ tar -zcvf dist.tar.gz favicon.ico img index.html js
favicon.ico
img/
img/logo.82b9c7a5.png
index.html
js/
js/chunk-vendors.21474059.js
js/app.28b205c5.js.map
js/chunk-vendors.21474059.js.map
js/app.28b205c5.js
SSH: Connecting from host \[VM\_0\_10\_centos\]
SSH: Connecting with configuration \[119.29.93.144\] ...
ERROR: Exception when publishing, exception message \[Failed to connect and initialize SSH connection. Message: \[Failed to connect session for config \[119.29.93.144\]. Message \[Auth fail\]\]\]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
Finished: UNSTABLE
阅读 413
评论
    1 个回答

    私钥概不外传