Why might GitHub report a public key as invalid? -


i have generated ssh key.
result was:

your identification has been saved in /home/rajani/.ssh/id_rsa. public key has been saved in /home/rajani/.ssh/id_rsa.pub. 

the key in hexa decimal format, while adding github, getting error this:

key invalid.  must begin 'ssh-rsa' or 'ssh-dss'.  check you're copying public half of key . 

how should add ssh key github?

the problems

  1. the ssh-keygen utility defaults generating rsa keys, implementation may default ecdsa, github not support.
  2. if generating rsa keys, may trying paste private key server, instead of public key.

solutions

  1. force rsa key generation passing -t flag ssh-keygen.
  2. make sure you're copying key .pub extension, , include entire line. include ssh-rsa prefix if you're copying rsa public key.

related

of course, man 1 ssh-keygen friend.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -