1

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"

my ssh key

hardillb
  • 54,545
  • 11
  • 67
  • 105
  • 1
    In 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 Answers1

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