kmanlove
By:
kmanlove

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

March 5, 2016 921 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.

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.

Have another answer? Share your knowledge.