我已经生成了ssh密钥.
结果是:
Your identification has been saved in /home/rajani/.ssh/id_rsa.
Your public key has been saved in /home/rajani/.ssh/id_rsa.pub.
Run Code Online (Sandbox Code Playgroud)
密钥是十六进制格式,但在将其添加到GitHub时,我收到如下错误:
Key is invalid.
It must begin with 'ssh-rsa' or 'ssh-dss'.
Check that you're copying the public half of the key .
Run Code Online (Sandbox Code Playgroud)
我应该如何正确地将一个ssh密钥添加到GitHub?
当然,man 1 ssh-keygen是你的朋友.