when i want to import my ssh key in github i have This Erorr "Key is invalid. You must supply a key in OpenSSH public key format"
Asked
Active
Viewed 57 times
1
-
1In the `~/.ssh` folder, there will be a file that ends with `.pub`. The contents of that file is your public key. For example, mine looks like this: `ssh-ed25519 ... me@my-computer`. Depending on how you generated it, it might start with `ssh-rsa` instead. – cocomac Aug 14 '22 at 18:42
1 Answers
0
Try again with:
ssh -P "" -t rsa -f ~/.ssh/github
cat ~/.ssh/github.pub
Copy the public key content in your GitHub SSH setting page: this one should work.
One starting with SHA256:...
looks like a key fingerprint, not an actual public key.

VonC
- 1,262,500
- 529
- 4,410
- 5,250