GCP100

This class should teach you how to interact with Google Cloud Platform (GCP) at a very simple level.

GCP is extremely feature rich which means it might confuse you with its complexity.

This class should show you some basics which you can use right away.

To get started in my GCP kitchen, I located two important ingredients:

I logged into gmail.

Next, I visited the URL listed below:

https://cloud.google.com/

Then this:

https://cloud.google.com/docs/

Then this:

https://cloud.google.com/free/docs/frequently-asked-questions

I registered; I gave GCP my Credit Card info; GCP gave me a $300 credit.

Be aware, not everyone gets a $300 credit; I'm not sure why.

Next, I visited the URL listed below:

https://cloud.google.com/compute/docs/quickstart-linux

I followed the instructions in that page.

At then end of that effort I followed their instructions to delete my instance.

I collected some screenshots.




Next I pressed the blue-create button to create another instance:




Google quickly created a new instance and I started Bash on it with the SSH link:


I created an account named ann with this syntax:

sudo useradd -m -s /bin/bash -G sudo ann

Then I located my public key on my laptop:

cat ~/.ssh/id_rsa.pub

Next, in the new ann account, I created ~ann/.ssh/authorized_keys:

sudo apt install vim
sudo mkdir ~ann/.ssh/
sudo vim   ~ann/.ssh/authorized_keys

With my mouse, I copy-pasted ~/.ssh/id_rsa.pub from my laptop into ~ann/.ssh/authorized_keys

I set permissions on ~ann/.ssh/authorized_keys

sudo chmod 700 ~/ann/.ssh/
sudo chmod 600 ~/ann/.ssh/authorized_keys
sudo chown -R ann ~/ann/.ssh/

I connected to the ann account from my laptop:

ssh ann@35.224.32.10

It worked. Yay!

Class02


learn4.us About Blog Contact Class01 Class02 Class03 Class04 Class05 Class06 Class07 Class08 Class09 Class10 dan101 Forum Google Hangout Vboxen