Key type is forbidden. Must be RSA, DSA, ECDSA, or ED25519

##Issue: Unable to add deploy keys.

##error when I try to add keys at the project level: Key is invalid, Key type is forbidden. Must be RSA, DSA, ECDSA, or ED25519, Fingerprint cannot be generated, Deploy keys projects deploy key key is invalid, Deploy keys projects deploy key key type is forbidden. Must be RSA, DSA, ECDSA, or ED25519, Deploy keys projects deploy key fingerprint cannot be generated.

##error when I try to add keys from the admin panel: The form contains the following errors: * Key is invalid * Key type is forbidden. Must be RSA, DSA, ECDSA, or ED25519 * Fingerprint cannot be generated

##Goal: Do the following from gitlab ci: Deploy code to a centos server. Build node app from that code within that centos server restart the web server.

##Documents being followed:

##Type of keys tried:

  1. ssh-keygen -t ed25519 -C "" --> same error [cat ~/.ssh/id_ed25519]
  2. ssh-keygen -t rsa -b 2048 -C "" --> same error [cat ~/.ssh/id_rsa] The errors are the same for both type of keys.

versions:

kubernetes: gitlab helm chart: gitlab-4.4.1 kubernetes provider: RKE gitlab runner chart: gitlab-runner-0.21.1

Issues already referred but no go

Notes:

I have also tried cat ~/.ssh/id_ed25519 | tr -d '\n' cat ~/.ssh/id_rsa | tr -d '\n' but no go. I tried copying it from the vi editor. I am extremely appreciative of the product and what it offers to us. I hope to get this solved by knowing what I might be doing wrong or what is wrong here!.

Edited by Gajendra D Ambi