Create a server in Google Cloud Platform. Although already know if Google has cloud services since 1-2 years ago, but only now I touch. : p This is because I want to learn more about the world of hosting in general and the specific cloud. What is clear the registration process itself is easy, just enter the data and will be able to credit free trial for $ 300 that apply a year. Wow is not it?
But when you see the panel. this is not a cloud hosting service that is usually like DigitalOcean and Vultr, but it can be more complex structure. And frankly a little overwhelmed I understood it first time. Yes can be said this more to the competitors of Microsoft Azure or Amazon Web Services anyway.
Now to focus our discussion, how do we create a VPS (Virtual Private Server) in Google Cloud Platform? Originally an easy thing, but because of the many menus and options kinda make confuse as well. Just check the navigation menu on the left, there will be a Compute Engine label. Please select VM instances (Virtual Machine Instance reference), wait for the moment of preparation and click Create. Here I take the smallest VM instance type, which is only 0.6GB RAM, 1 vCPU shared and 10 GB disks. Its name is f1-micro (1 vCPU, 0.6 GB memory). In addition to the cheapest, I also want to know how great its ability compared to similar products from other providers.
Here I take the smallest VM instance type, which is only 0.6GB RAM, 1 vCPU shared and 10 GB disks. Its name is f1-micro (1 vCPU, 0.6 GB memory). In addition to the cheapest, I also want to know how great its ability compared to similar products from other providers.
After that we choose what operating system used in the Boot disk section, there are many options of ISO Linux. Here I use Ubuntu 18.04 LTS. And do not forget the Firewall section to tick Allow HTTP traffic and Allow HTTPS traffic if the server will be used as a web server.
And last is to access SSH to the server, can not use username and password, but use SSH key. So please create first, and public key and username copied-paste into the box provided.
Example like this:
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvQc6abxT6jE6wHbEd5oGojFt6PIkHdrAGeHrBdy1pZtm4J1XljsY+iYY980nUK2exJW4Pht7iZe2W0h/pxGX6/+pow2szbFL98Q8kzRqquvuz2/O3FAqwbkv+8CnELkqd5uSOb4DurdCUiLVXxP0uINnhYmqm5xVy63mZ3cwYVaZmzuLVXufGh+Wo9OlmwXr09i7xj4QNcxg3qeoF9lJil5loSqNMKCIWa6LgQTmTcixB5eYI8tgDo5nWtLxFwGtT9Se0zwleBNjWVOKTxzl/OzR9LoDX3B7PIfjp001fLNRjHXgCBATGa/N7tOgaksrh+pPS+WV2WQZFHBJeqA+tw== firstname.lastname@example.org
In the end there is a user name you want to use, so create your own SSH key and in the end add the user name. After that we will be transferred to the panel, there will be External IP which is the static IP address of our VPS. Use that IP for SSH connections as usual.
Oh yes, the command if Ubuntu / Debian in GCP need sudo. Which other Linux distro I have not tried whether it is necessary too. Afterwards how to use will be the same as VPS management usually.