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
- Generate key pair:
ssh-keygen -t ed25519
- Copy public key to instance metadata - link.
- Restart the instance.
- 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)