This FAQ answers the question "How to create a Digital Ocean droplet and provide SSH connection to Github?"
Providing an SSH Connection to Github can be done either before or after creating the Digital Ocean (DO) droplet. It turns out that it's easier to set up an SSH key in DO before creating the droplet than to manually add the SSH key to the DO droplet after creating it. For that reason, I'll describe setting up the SSH Connection before describing setting up the droplet.
Because the application that runs to setup a droplet prompts the user for an existing SSH key (or keys), it makes sense to set these keys up before attempting to create the droplet.
cat ~/.ssh/id_rsa.pub
and select and copy.The net effect of having an SSH Key uploaded to you DO account is that you will see it offered up when you are creating your droplet.
Upload SSH Keys to Digital Ocean Account
If you already have a droplet and you want to add an SSH key, you will need to do it manually.
cat ~/.ssh/id_rsa.pub
and select and copy.ls -la ~/.ssh/authorized_keys
to determine of the authorized keys files exists. If it doesn't create it with touch ~/.ssh/authorized_keys
authorized_keys
file to make it accessible chmod -R go= ~/.ssh
chown -R $USER:$USER ~/.ssh
[Upload keys on an existing droplet](https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/to-existing-droplet
Follow the step for creating a droplet in the link below. Choose an Ubuntu images/1 GB memory/25 GB disk/San Francisco for your data center as it's the closest to Seattle. You want the simplest images for your server as possible and it should only cost $5/month. You don't need a back up or block storage. If you uploaded an SSH key you should see it available when under "Add SSH key" and you should select it. Then just click on create. If you make a mistake just delete the image from the console and try it again. Don't get attached to your server, especially when there's nothing on it. Make note of the IP Address.
Once the image it created, go to your local machine and login using ssh. Here's an example if your IP address is 203.0.113.0
ssh root@203.0.113.0
If your using a Mac you can do this from the terminal and if you're using Windows, I recommend doing it from Git Bash.