Question

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

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

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.

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

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