deployer: Won't git clone from private repo but forwardAgent() connection is done.
I use: server(‘ssss’, ‘111.111.111.111’) ->user(‘uuuu’) ->forwardAgent();
Connect is done, and all tasks before deploy:update_code
is done too.
On deploy:update_code
raise exception:
[RuntimeException]
Permission denied (publickey).
fatal: The remote end hung up unexpectedly.
But if I manualy connect by ssh uuuu@111.111.111.111
and exec git clone -b master --depth 1 --recursive -q git@github.com:oooo/rrrr.git rrrr
- it working good.
I configured local(ubuntu) and server(debian7) in accordance with https://github.com/oanhnn/deployer-example/blob/master/docs/enable-feature-ssh-forward-agent.md (but in my server no sshd service, it’s name ssh). This has no effect.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (8 by maintainers)
Commits related to this issue
- Fixed wrong agent forwarding implementation (fixes #393) — committed to dbalabka/deployer by dbalabka 9 years ago
- Merge pull request #428 from torinaki/forward-agent Fixed wrong agent forwarding implementation (fixes #393) — committed to deployphp/deployer by deleted user 9 years ago
I think
forwradAgent()
is working but in your agent has many keys and one or some keys has made this error. Please try add key to deploy keys and run below command before run deployer.