How to create cloud instance and access it on Digital Ocean
Last updated
Last updated
If you're creating new account on DigitalOcean, please register with referral link to get $100 credit.
Everyone you refer gets $100 in credit over 60 days. Once they’ve spent $25 with us, you'll get $25. There is no limit to the amount of credit you can earn through referrals.
Here is my referral link if you cannot find one.
With $100 credit, you can use the one basic droplet for 20 months ($5/month).
If you're student, you could earn extra $50 credit from github student developer pack.
Once you login in Digital ocean website, you can create cloud instance at the drop down menu on the top right corner.
You need to choose the image for your instance. Here I am choosing Debian as my OS and you can pick any that suits your needs.
Here is the most important part for your container. With basic instance, you can have 1G CPU/25G SSD Disk which I think is very attempting option. Not every cloud provider gives SSD storage for free and it only costs you $5 per month and you already have $100 credit (or more if you're student).
I will leave block storage as blank for now.
Choose datacenter where closest to your location or your target user.
VPC network is enabled by default.
Select Monitoring for the performance metrics.
At the Authentication section, add your SSH keys so that you could access your cloud instance.
Click on Add key
If you have already created SSH public key (or you don't remember), simply put the following command in your terminal to retrieve public key at your PC.
If you don't have any public key, you can create one by entering following command in your terminal.
Once you have your public key ready, you can copy paste on the text area (Please do not copy any extra space or new line).
Enter your hostname
Enter tags if you plan to have multiple droplets and need to manage it.
Select which project you want to create the droplet in.
Here I will skip the backup.
Once you create a droplet, it take a few seconds to process.
You will get the droplet ip address when created.
You can access your cloud instance via ssh:
You will get similar response when you successfully access the droplet:
You can do some testing for this droplet:
When you want to leave the connection, just enter exit:
For more ssh access information, please check the official page.
You can destroy the droplet if you're done testing (bill is counted on daily basis) or you don't need it anymore.
Digital ocean also offers charts to monitor your droplets.