D
D
denislysenko2021-11-17 23:34:54
bash
denislysenko, 2021-11-17 23:34:54

How to connect via ssh to a cluster (virtual machine) that was created in google cloud?

I added a public key to the ssh settings on the google cloud cluster.

Then, on my local computer, I try to connect to this cluster (virtual machine), but for some reason I don’t have access. Permission denied (public key) error.

this is what it looks like in the terminal:

[email protected] ~ % ssh -i ~/.ssh/gcloud-ssh-vm [email protected]
[email protected]: Permission denied (publickey).


How can this problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hanneman, 2021-11-18
@denislysenko

Well, you never know what you have there. Maybe you are using the wrong key pair, maybe access is not allowed by the key in the ssh settings on the server. Without additional information, it is unlikely that anyone can objectively help.
What do you have there sshd_config?
In what format are the keys created, in which does the cluster accept? I see ECDSA - do you have this format?
What does it write if ssh -v (i.e. debug output in the terminal)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question