yok*_*dev 5 linux continuous-integration web-deployment jenkins jenkins-plugins
大家好,我正在尝试将我的代码部署到远程服务器..到目前为止我已经尝试过
这就是我得到的
[JenkinsBuild] $ /bin/sh -xe /var/lib/jenkins/tmp/hudson4646064064846581974.sh
+ rsync -PSauve ssh --exclude=JenkinsBuild app bower.json config gruntfile.js karma.conf.js LICENSE.md Makefile node_modules package.json Procfile protractor.conf.js public README README.md server.js john@192.168.2.10:/srv/dp/prod
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
Run Code Online (Sandbox Code Playgroud)
有什么想法我在这里做错了吗?
最好的方法是将本地公共 ssh 密钥复制到远程主机。然后通过您的密钥而不是密码完成身份验证
只需在 jenkins 上运行 ssh-copy-id user@host 即可。
那么应该就不再有问题了:)
| 归档时间: |
|
| 查看次数: |
7218 次 |
| 最近记录: |