Reputation: 1286
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
Reputation: 867
Now you can add sshs simple: dokku ssh-keys:add dokku ~/.ssh/id_rsa.pub
Upvotes: 1
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
Reputation: 1328602
You need to check on your work computer:
~/.ssh/id_rsa
(.pub
) is the right key added to dokkuroot@url
isn't the same than dokku@url
Upvotes: 5