Every time I try to enter via SSH into my VM instance in Google Compute Engine I got this error:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
I have attempted the steps mentioned below :
Generated a ssh key using the command ssh-keygen -t rsa -f ~/.ssh/[filename] -C [username]
Copied the public key into instance ssh list.
- And then tried to ssh the compute engine using the private key ssh -i [privatekeyname] [username]@[ipaddress]
What could be the issue or am I missing some steps?