devops@devops-Inspiron-5448:~/.ssh$ rm /home/devops/.ssh/google_compute_* devops@devops-Inspiron-5448:~/.ssh$ gcloud beta compute ssh --zone "us-central1-a" "instance-3" --project "devops-273118" WARNING: The public SSH key file for gcloud does not exist. WARNING: The private SSH key file for gcloud does not exist. WARNING: You do not have an SSH key for gcloud. WARNING: SSH keygen will be executed to generate a key. Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/devops/.ssh/google_compute_engine Your public key has been saved in /home/devops/.ssh/google_compute_engine.pub The key fingerprint is: SHA256:qG9U0BnsFPyEppB9sGKFCIQOjmvKrMc0M3MbeVg1/OQ devops@devops-Inspiron-5448 The key's randomart image is: +---[RSA 3072]----+ |+o . +oo= | |o . +.o.& o | |= o..O B | |.o . .o.o E | | . +..S | |.. =.o | |=o *.= | |.oo ... | |o. .. | +----[SHA256]-----+ Updating project ssh metadata...?Updated [https://www.googleapis.com/compute/beta/projects/devops-273118]. Updating project ssh metadata...done. Waiting for SSH key to propagate. Warning: Permanently added 'compute.1031091980582206468' (ECDSA) to the list of known hosts. [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). [email protected]: Permission denied (publickey). ERROR: (gcloud.beta.compute.ssh) Could not SSH into the instance. It is possible that your SSH key has not propagated to the instance yet. Try running this command again. If you still cannot connect, verify that the firewall and instance are set to accept ssh traffic. devops@devops-Inspiron-5448:~/.ssh$
rm /home/devops/.ssh/google_compute_*
gcloud beta compute ssh --zone "us-central1-a" "instance-3" --project "devops-273118"
2.1m questions
2.1m answers
60 comments
57.0k users