Capistrano 3.1部署失败-Windows 10上的bitbucket-“从身份验证套接字读取响应长度时出错". [英] Capistrano 3.1 deploy failed - bitbucket on windows 10 - "Error reading response length from authentication socket."

查看:78
本文介绍了Capistrano 3.1部署失败-Windows 10上的bitbucket-“从身份验证套接字读取响应长度时出错".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上是从另一个开发人员那里得到一个项目.我有一台Windows 10机器,回购在bitbucket上.
每次启动命令行客户端(cmder)时,我都会启动ssh代理并添加ssh密钥.
我可以连接到服务器的ssh -T git@bitbucket.org,因此ssh密钥似乎可以正常工作.
我也可以从服务器上运行ssh -T git@bitbucket.org,它也很好. 我的ruby版本是2.3.*,这似乎不是net-ssh问题.
在我的ssh配置文件中,我添加了

I am actually getting a project back from another developer. I have a windows 10 machine, the repo is on bitbucket.
I have my ssh agent started and my ssh key added each time I launch my command line client (cmder).
I can connect to ssh -T git@bitbucket.org, to my server so the ssh key seems to work.
I can also run ssh -T git@bitbucket.org from my server and it is fine too. My ruby version is 2.3.* and it doesn't seem to be a net-ssh problem.
On my ssh config file I have added the

Host mydomain.com
ForwardAgent yes  

但是每次尝试时,我都会收到此错误

But each time I tried the cap staging deploy I got this error

DEBUG [1a76116b] Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/home/domain/tmp/git-ssh-app-staging-user.sh" ; /usr/bin/env git ls-remote git@bitbucket.org:user/domain-b2c.git HEAD )
DEBUG [1a76116b]       Error reading response length from authentication socket.
DEBUG [1a76116b]       Permission denied (publickey).  
DEBUG [1a76116b]       fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

我真的不知道该怎么办.我已经为遇到类似问题的人尝试了许多解决方案,但似乎无济于事. 对于其他开发人员来说,它工作正常. 我的ssh密钥是用git生成的,它在我的本地.ssh文件夹,服务器ssh_authorized密钥和bitbucket配置文件设置中. (是否需要将其添加到存储库ssh密钥中?)

I really don't know what to do right now. I have trying many solutions I saw for people with similar problems but nothing seems to work. It is working fine for the other developer. My ssh key was generated with git and it is on my local .ssh folder, on my server ssh_authorized keys and on my bitbucket profil settings. (Could it be needed to add it to the repository ssh key?)

非常感谢您的帮助.

推荐答案

我终于找到了,所以我将解决方案发布到这里: 在PC上,您需要安装Putty并在其中使用id_rsa密钥启动Pageant.

I finally found so I will post the solution here: On PC, you need to install Putty and launch Pageant with your id_rsa key inside.

就是这样!

这篇关于Capistrano 3.1部署失败-Windows 10上的bitbucket-“从身份验证套接字读取响应长度时出错".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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