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
- the ssh-keygen utility defaults generating rsa keys, implementation may default ecdsa, github not support.
- if generating rsa keys, may trying paste private key server, instead of public key.
solutions
- force rsa key generation passing -t flag ssh-keygen.
- 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
Post a Comment