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

家住魔仙堡 提交于 2019-12-04 22:37:29

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.

I had the same error.

ssh-copy-id user@ipaddress

Helped me to solve this.

igatto

I had the same issue but in my case I had to delete file .ssh/known_hosts from my local machine.

After upgrading Rails from 4.1.x to 4.2, I started getting similar errors when trying to bundle. I fixed it by removing the shared bundle directory. Here's the steps I took:

  1. SHH into the server
  2. cd /my/app/shared/bundle/ruby
  3. rm -rf 2.1.0 or whatever "version" directory is there
  4. Re run the deploy cap production deploy

You may, at this point, hit a memory snag (I did while deploying to a DigitalOcean droplet). The fix for that is to create and enable a swap file on the droplet.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!