Thursday, April 28, 2022

[SOLVED] Google Cloud Fedora ssh connection problem

Issue

I was created vm fedora 33 on google cloud but i can't connection with ssh. Actualy i can connect debian vm's but can't only fedora vm's.

Ssh error is

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

also my public key type is rsa.


Solution

  1. Generate key pair: ssh-keygen -t ed25519
  2. Copy public key to instance metadata - link.
  3. Restart the instance.
  4. Connect using new key: ssh -i <KEY_FILE> core@<INSTANCE_PUBLIC_IP>

You can find more information here.



Answered By - Sergiusz
Answer Checked By - Gilberto Lyons (WPSolving Admin)