Capistrano 3.1 部署失败 - windows 10 上的 bitbucket - "Error reading response length from authentication socket."
Capistrano 3.1 deploy failed - bitbucket on windows 10 - "Error reading response length from authentication socket."
我实际上是从另一个开发者那里拿回了一个项目。我有一台 windows 10 机器,repo 在 bitbucket 上。
每次启动命令行客户端 (cmder) 时,我都会启动 ssh 代理并添加 ssh 密钥。
我可以连接到 ssh -T git@bitbucket.org
、我的服务器,所以 ssh 密钥似乎可以工作。
我也可以从我的服务器 运行 ssh -T git@bitbucket.org
也很好。
我的 ruby 版本是 2.3.* 似乎不是 net-ssh 问题。
在我的 ssh 配置文件中,我添加了
Host mydomain.com
ForwardAgent yes
但是每次我尝试 cap staging deploy
我都会收到这个错误
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 密钥?)
非常感谢您的帮助。
我终于找到了,所以我将 post 解决方案放在这里:
在 PC 上,您需要安装 Putty 并使用里面的 id_rsa 键启动 Pageant。
就是这样!
我实际上是从另一个开发者那里拿回了一个项目。我有一台 windows 10 机器,repo 在 bitbucket 上。
每次启动命令行客户端 (cmder) 时,我都会启动 ssh 代理并添加 ssh 密钥。
我可以连接到 ssh -T git@bitbucket.org
、我的服务器,所以 ssh 密钥似乎可以工作。
我也可以从我的服务器 运行 ssh -T git@bitbucket.org
也很好。
我的 ruby 版本是 2.3.* 似乎不是 net-ssh 问题。
在我的 ssh 配置文件中,我添加了
Host mydomain.com
ForwardAgent yes
但是每次我尝试 cap staging deploy
我都会收到这个错误
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 密钥?)
非常感谢您的帮助。
我终于找到了,所以我将 post 解决方案放在这里: 在 PC 上,您需要安装 Putty 并使用里面的 id_rsa 键启动 Pageant。
就是这样!