error add ssh key to account in github

1

personalsomeoneI'mtryingtoaddmysshkeytoaccountingithubsoqeisgivingerror,heasksforatitleandIput"windows" then asks for a key then I put "id_rsa.pub" this error appears: Key is invalid. It should begin with 'ssh-ed25519', 'ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', or 'ecdsa-sha2-nistp521'. Check that you're copying the public half of the key

    
asked by anonymous 20.01.2017 / 00:45

1 answer

1

In the title I suggest you put something that refers to the place you are adding. Example: "Personal Notebook".

Assuming you are using a Unix system, in the key you should put the contents of the id_rsa.pub file, it is in the $ HOME / .ssh folder, you can check the contents of the file using the command cat : cat $HOME/.ssh/id_rsa.pub .

Explanation: SSH uses asymmetric encryption, which is based on the use of two keys: one (public key) used by the sender to encrypt the data before sending them, in which case Github will be the sender, and (private key) used to retrieve the original message, in this case its own machine. Hope this helps. =)

    
20.01.2017 / 04:21