Question

Can we take over editing a Dokku installation with just the server's git remote information?

Posted March 5, 2016 1.7k views
Git Dokku

We just took over a site for a client and discovered that they have a dokku installation. With root, we were able to install ssh keys and that all seems to work fine. If you log in with Dokku, it kicks you out as it should.

I was thinking we could use the remote backup instructions from Dokku to get a local checkout to start pushing changes to the site, but I’m getting “Please make sure you have the correct access rights and the repository exists.” Before I screw around with this too much, I wanted to make sure I was under a correct assumption that this would work. If we just need to get access to the original repository, let me know.

Thanks for your help.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Adding a SSH key for use with Dokku should be done with the sshcommand acl-add command. It formats the /home/dokku/.ssh/authorized_keys file in a very specific way.

  • cat ~/.ssh/id_rsa.pub | \
  • ssh root@dokku.ip.address "sudo sshcommand acl-add dokku <name>"

For more info on how Dokku handles user management, see here.

Submit an Answer