特使的私人Github存储库 [英] Private Github Repositories with Envoy

查看:79
本文介绍了特使的私人Github存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用私有Github存储库时,有人在Laravel的特使部署过程中遇到任何问题吗?

Anybody has any problems deploying with Laravel's envoy when using private Github repos?

从生产服务器手动克隆我的存储库时,似乎可以访问ssh密钥,但是在使用Envoy时,总是会收到权限被拒绝(公钥)错误".

When manually cloning my repo from the production server, the ssh key seems to be accessible but when using Envoy, I always get a "Permission denied (publickey) error.

谢谢

推荐答案

您需要传递 -A (按照其手册页-启用身份验证代理连接的转发.这也可以在您的ssh字符串中基于每个主机指定).

You need to pass the -A (as per the man page it - Enables forwarding of the authentication agent connection. This can also be specified on a per-host basis in a configuration file) in you ssh string.

您还需要添加ssh密钥以进行代理转发(在可以访问git remote(我认为是您的本地主机)的机器上)

You will also need add your ssh key for agent forwarding (on the machine which can access the git remote which I assume be your localhost)

ssh-add -K ~/.ssh/your_private_key

类似这样的东西

@servers(['web' => '-A user@domain.com'])

@task('deploy')
 cd /path/to/site
 git status
@endtask

Git远程命令现在应该可以工作了.

Git remote commands should now work.

这篇关于特使的私人Github存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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