Dokku add new ssh key

January 30, 2014 38.3k views
How can I add new ssh key for dokku. I have already created one key and tested deployment. Now i cannot add new key for accessing it from other machine
5 Answers
Run the following command to add a new key:
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"

[description] can be anything as long as it is one word only (e.g. "personal", "home", etc.).
  • How would you do this in Windows? Can I just copy/paste my key into the authorized_keys file?

  • Try running:

    type "C:\path\to\public_key" | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
    
  • That works perfectly!! Thanks!!

  • On a mac (and most unix-based machines), this will be:

    cat ~/.ssh/id_rsa.pub | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku laptop"
    
Thanks it works perfectly !

I have a problem, I started using dukke I was able to add ssh key, but when wanting to add another key using git and git push dokku master, I asked for a password I had lost 3 days in the forum everything is confusing ..

Have another answer? Share your knowledge.