Theo Lampert
Theo Lampert

Reputation: 1286

dokku asking for password

I have setup a digital ocean box with dokku on my home computer. I've added ssh keys for both my home and work computer. I've then turned password access off. Accessing the server from both computers works via ssh without the need for a password. Git push with dokku@ however will only work from my home computer. What am I missing? - should I just create a new droplet and try again?.

Upvotes: 3

Views: 7816

Answers (3)

Ernestyno
Ernestyno

Reputation: 867

Now you can add sshs simple: dokku ssh-keys:add dokku ~/.ssh/id_rsa.pub

Upvotes: 1

ianks
ianks

Reputation: 1768

I have a similar error. I needed to run this command:

$ cat ~/.ssh/id_rsa.pub | ssh progriumapp.com "sudo sshcommand acl-add dokku progrium"

This adds an ssh key for the user. Make sure that your first $ source ~/.bashrc on the server to make sure the command runs as expected.

Upvotes: 5

VonC
VonC

Reputation: 1328602

You need to check on your work computer:

  • if the ~/.ssh/id_rsa(.pub) is the right key added to dokku
  • if the url uses the right user: root@url isn't the same than dokku@url

Upvotes: 5

Related Questions