Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Digital Ocean create droplet using ssh keys
# This script allows us to create new droplets
require 'droplet_kit'
print "Enter you new droplet name ->: "
dropname = gets.chomp
client = token)
# The last part of the object created below is the ssh_key ID array, very important to access the VM ;-)
droplet = dropname, region: 'lon1', size: '512mb', image: 'ubuntu-14-04-x64',ssh_keys: [123456])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.