This post explains How To Connect Google Cloud GCP using Putty . Our objective is to connect to our Google Cloud GCP cluster from local desktop or laptop. We will see step by step how to do that.
testuser@cluster-bdbe-m:~$ ssh-keygen -t rsa -f ~/.ssh/guest1-gcp-ssh-key -C guest1
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): Enter same passphrase again:
Your identification has been saved in /home/testuser/.ssh/guest1-gcp-ssh-key.
Your public key has been saved in /home/testuser/.ssh/guest1-gcp-ssh-key.pub.
The key fingerprint is:SHA256:v5V9VGN1aIzlA74LC+9IbA1MJLMtrCqw+x4fXD/9Ey4 guest1The key's randomart image is:+---\[RSA 2048\]----+| o . .+..o|| . \* ..o+ o|| + o ..oo.|| . + ...o||. . . S . . .||.. o . o B o.+ . ||o o o \* \*.+.. .|| o o . o +E+o . ||.oo . . o... |+----\[SHA256\]-----+
testuser@cluster-bdbe-m:~$
testuser@cluster-bdbe-m:~$ pwd
/home/testuser
testuser@cluster-bdbe-m:~$
testuser@cluster-bdbe-m:~$ ls -l .ssh/
total 8
-rw------- 1 testuser testuser 1675 Oct 17 16:17 guest1-gcp-ssh-key
-rw-r--r-- 1 testuser testuser 388 Oct 17 16:17 guest1-gcp-ssh-key.pub
testuser@cluster-bdbe-m:~$
testuser@cluster-bdbe-m:~$ cat .ssh/guest1-gcp-ssh-key.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSPWUojm1xbvceWjSL3bZAX6tgu
9pM0lTPwxODOJ56+2L75NOLwgIKZh8MQZ5cUyLli5/5a1NIzA2xsqZ3NSwS6iTaRnH
r2OKebC6bZ/BAhjl/hl3Kqw8CgQSJSULlnJnTEq6JbdLTc1mVNRF1SusvBpYoObs695
SzcFwMjL8mSeVUDXB3j7CVJ0+gM8wON+pW+s6x3Is14EPeUEtW0C0tSlmPgFC4d812AadiC
jOdQ6cU5J2i7yRYRQiQR5w55reU+pFwEmoHZsTewJY85327/s4vSbEscEbztoo5YpAR44/Wj2KlLA8
V/O6lAuCqbe2rGDX+r25e+/v6TWkjgPx3 guest1
testuser@cluster-bdbe-m:~$