Note that your public key should be in SSH format, base64 encoded preceded with keytype. For example: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMeCf8Gt5pRHi3Msn9I/nJLBPMG3jW+vcZKfXxtRkaXv