SSH Keys

To deploy your app using git you need to add SSH public key.

The process of adding SSH keys vary across different OS.

OS X or Linux

If you use Dokkur Toolbelt (recommended), you only need to run dokkur login command and system will generate the key if there are no keys.

If you use ssh-keygen, follow these steps:

Step 1. Generate the key:

$ ssh-keygen -t rsa -b 2048 -f $HOME/.ssh/[email protected]_rsa

You can also add the final key to ssh-agent:

$ ssh-add $HOME/.ssh/[email protected]_rsa

Step 2. Copy your public key:

$ xsel -b < $HOME/.ssh/[email protected]_rsa.pub # (Linux)
$ pbcopy < $HOME/.ssh/[email protected]_rsa.pub # (Mac OS X)

Step 3. Open Dokkur in your browser, go to Manage Account section and click on Security tab and then on SSH keys tab, click button, paste your already copied key and click Upload. You will see a status message.

Add SSH

That’s it! Now you can deploy your app with git push dokkur master.

Windows

Adding SSH keys on Windows you need to follow these steps:

Step 1. Set up git for Windows, that includes ssh utilities.

Step 2. In Start Menu choose Git Bash item that opens a console window.

Step 3. Run this command:

$ ssh-keygen -t rsa -b 2048 -f $HOME/.ssh/[email protected]_rsa

Step 4. Open Explorer and enter this path:

%USERPROFILE%/.ssh

Step 5. Open file [email protected]_rsa.pub in Notepad, copy everything.

Step 6. Open Dokkur in your browser, go to Manage Account section and click on Security tab and then on SSH keys tab, click button, paste your already copied key and click Upload. You will see a status message.

Add SSH

That’s it! Now you can deploy your app with git push dokkur master.