Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit

Permalink
Refine details for a new account.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed Dec 16, 2021
1 parent 554f2da commit 383b34c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions content/GCP/02_intro_to_compute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@
"\n",
"To connect to the *VM Instance* we will use the cloud shell in the web console. Open up a shell by clicking on the **Activate Cloud Shell** icon in the top blue bar if it is not already open.\n",
"\n",
"We first verify that the cloud shell is using the correct identity and *project id* by looking at the welcome message and the prompt.\n",
"If you have not used Cloud Shell you may need read through some dialog boxes to create a new Cloud Shell and \"Allow\" the Cloud Shell to access your account.\n",
"\n",
"We first verify that the cloud shell is using the correct identity and *project id* by looking at the welcome message and the prompt. If your shell does not show a project you will have to use the little \"Down Arrow\" next to the \"+\" to create a new tab to select the correct project.\n",
"\n",
"![cloud-shell](img/cloud-shell.png)\n",
"\n",
Expand All @@ -154,7 +156,7 @@
"WARNING: The public SSH key file for gcloud does not exist.\n",
"WARNING: You do not have an SSH key for gcloud.\n",
"WARNING: SSH keygen will be executed to generate a key.\n",
"This tool needs to create the directory [/home/student231/.ssh] before\n",
"This tool needs to create the directory [/home/learner/.ssh] before\n",
" being able to generate SSH keys.\n",
"\n",
"Do you want to continue (Y/n)?\n",
Expand All @@ -172,10 +174,10 @@
"\n",
"After successfully retyping the passphrase the key generation process will continue showing similar message as follows (the fingerprint and art will look different):\n",
"```\n",
"Your identification has been saved in /home/student231/.ssh/google_compute_engine.\n",
"Your public key has been saved in /home/student231/.ssh/google_compute_engine.pub.\n",
"Your identification has been saved in /home/learner/.ssh/google_compute_engine.\n",
"Your public key has been saved in /home/learner/.ssh/google_compute_engine.pub.\n",
"The key fingerprint is:\n",
"SHA256:D9yj1nZEUigahirvjkIFoCP7RfjDu67Ku88M7nHQftI student231@cs-748001990186-default-boost-r9phq\n",
"SHA256:D9yj1nZEUigahirvjkIFoCP7RfjDu67Ku88M7nHQftI learner@cs-748001990186-default-boost-r9phq\n",
"The key's randomart image is:\n",
"+---[RSA 2048]----+\n",
"|o . .. |\n",
Expand All @@ -194,18 +196,19 @@
"\n",
"At this point the command will attempt to connect to the *VM Instance* and will ask the following question:\n",
"```\n",
"Did you mean zone [us-central1-a] for instance: [instance-1] (Y/n)? n\n",
"Did you mean zone [us-central1-a] for instance: [essentials-instance-1] (Y/n)? n\n",
"```\n",
"Answer \"n\".\n",
"\n",
"The command will now configure the instance to allow your ssh key and connect to it.\n",
"\n",
"```\n",
"No zone specified. Using zone [us-central1-a] for instance: [instance-1].\n",
"Updating project ssh metadata...working..Updated [https://www.googleapis.com/compute/v1/projects/class-essentials-gcp-demo-1].\n",
"No zone specified. Using zone [us-central1-a] for instance: [essentials-instance-1].\n",
"Updating project ssh metadata...working..Updated [https://www.googleapis.com/compute/v1/projects/class-essentials-instance-1].\n",
"Updating project ssh metadata...done.\n",
"Waiting for SSH key to propagate.\n",
"Warning: Permanently added 'compute.74517428106645607' (ECDSA) to the list of known hosts.\n",
"Enter passphrase for key '/home/learner/.ssh/google_compute_engine':\n",
"```\n",
"\n",
"Once connected you will see the machine login banner and prompt similar to the following:\n",
Expand Down
Binary file modified content/GCP/img/cloud-shell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 383b34c

Please sign in to comment.