Reputation: 1326
Hello everyone so I'm trying to deploy my code to a remote server.. so far I've tried with
this is what I get
[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 [email protected]:/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]
any ideas what I'm doing wrong here ?
Upvotes: 5
Views: 7441
Reputation: 543
The best way is to copy your local public ssh key to the remote host. Then authentication is done via your key and not by password
simply run ssh-copy-id user@host on your jenkins.
Then there shouldn't be a problem any more :)
Upvotes: 5