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

Most upvoted comments

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.

$ ssh-add -D
$ ssh-add /path/to/your_key
$ dep deploy dev -vvv