Capistrano 3 SSHKit :: Runner :: ExecuteError:在主机[hostname]代理上执行时发生异常,无法使用请求的身份签名数据 [英] Capistrano 3 SSHKit::Runner::ExecuteError: Exception while executing on host [hostname ]agent could not sign data with requested identity

查看:65
本文介绍了Capistrano 3 SSHKit :: Runner :: ExecuteError:在主机[hostname]代理上执行时发生异常,无法使用请求的身份签名数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将Rails应用程序部署到ubuntu服务器时出现以下错误,我已经正确设置了ssh密钥,并且可以ssh到服务器,但是在尝试执行此操作时会得到以下消息

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

这是错误消息

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

由于我以前已经部署过,所以我不知道自己在做什么错,我只需要将我的应用程序更新为所做的更改即可。自上次部署以来,我尚未更改 deploy.rb,Capfile或deploy / production.rb 文件

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

推荐答案

我通过发出 ssh-add 解决了类似的问题。看来我当前的环境没有正确地拿起钥匙,读完这些钥匙就解决了这个问题。

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.

这篇关于Capistrano 3 SSHKit :: Runner :: ExecuteError:在主机[hostname]代理上执行时发生异常,无法使用请求的身份签名数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆