Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capistrano 3 SSHKit::Runner::ExecuteError: Exception while executing on host [hostname ]agent could not sign data with requested identity

I'm getting the following error while deploying my rails app to an ubuntu server, I have correctly setup ssh keys and I can ssh to the server but I'm getting the following when I try to do

 cap production deploy

This is the error message

cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host xxxxxx.xxxxxxx.xxx: agent could not sign data with requested identity

I can't figure out what I am doing wrong since I had previously deployed and I just need to update my app to changes I have made. I have not changed my deploy.rb, Capfile or deploy/production.rb files since I last deployed

like image 353
Mutuma Avatar asked Jun 16 '14 13:06

Mutuma


2 Answers

I solved a similar issue by just issuing ssh-add. It seems that my current environment hasn't properly picked up the keys and readding them fixed the issue.

like image 74
Ivan Zarea Avatar answered Nov 16 '22 17:11

Ivan Zarea


I had the same error.

ssh-copy-id user@ipaddress

Helped me to solve this.

like image 2
mbdvg Avatar answered Nov 16 '22 17:11

mbdvg