First time setting up dokku, issue with user/permission

May 18, 2014 1.8k views
HI, so I was following the tutorial to deploy a Flask application on dokku (https://www.digitalocean.com/community/articles/how-to-use-the-dokku-one-click-digitalocean-image-to-deploy-a-python-flask-app). My app currently runs fine on Heroku so I think the settings etc should be good. However I run into an issue when I wanted to add the remote (last step), it's asking me for dokku@my_domain's password. I didn't explicitly set up the user dokku so I don't know what the password is. Sorry if this is a n00b question. Thanks for the help!
3 Answers
This is the issue with your ssh-key. Check if you added the right ssh-key. See this article for more details: https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2
SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. With SSH keys, users can log into a server without a password. This tutorial explains how to generate, use, and upload an SSH Key Pair.
sorry I followed that but I'm still not sure where I messed up. Is it on the my git host side or on my digitial ocean set up side? Thanks!
It sounds like your SSH key wasn't added to the Dokku user. When you first setup the Dokku server, enter its IP address in a web browser to add your SSH public key. It should look like:


To manually add another key latter, from your local machine you can run:

cat ~/.ssh/id_rsa.pub | ssh root@your.dokku.instance "sudo sshcommand acl-add dokku [description]"
Have another answer? Share your knowledge.