I use ubuntu 12.04 server in my virtual machine for practice.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
You can also temporary enable the PasswordAuthentication from no to yes in order to access your droplet using a password and then once you’ve entered your key to disable the PasswordAuthentication again. This way is considered more secure than uploading the key to a Dropbox in case you don’t have any other server to us.
ssh username@[hostname or IP address]
Hope that this helps!
I’d take a look at the guide below. It’s geared towards 14.04, though it should work on all versions as it’s not OS specific, rather, it’s Apache.
Join 1M+ other developers and: