Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

google cloud platform - GCP gcloud shell SSH Permission denied (publickey) project ssh metadata

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$


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...