← Back to team overview

openstack team mailing list archive

Re: Error in Creating ssh keypair (Openstack Essex)

 

Looking at the source for handling of the public key (https://github.com/openstack/nova/blob/stable/essex/nova/api/openstack/compute/contrib/keypairs.py#L108), it's failing at generating the fingerprint for your key. Then if you look at the code for that (https://github.com/openstack/nova/blob/stable/essex/nova/crypto.py#L119) you see the underlying command "ssh-keygen -q -l -f <public key file>". Maybe you can get to the root of the problem with your key by running that command manually.

Melanie

On 10/22/12 2:42 PM, Pavan Kulkarni wrote:

Hi all,

   I am trying to add a ssh keypair in Openstack Essex on RHEL.
I have id_rsa.pub which i use to create the keypair

But when i run the command
*nova keypair-add --pub_key id_rsa.pub mykey*
*I get an error as follows*
*"ERROR: KeyPair data is invalid (HTTP 400)"*
*
*
I recreated the public key etc, but did'nt help
Any idea regarding this error is appreciated.Thanks


--

--With Regards
Pavan Kulkarni




Follow ups

References