[Openstack] Error in Creating ssh keypair (Openstack Essex)

Pavan Kulkarni pavan.baburao at gmail.com
Mon Oct 22 22:52:47 UTC 2012


Melanie,

  Thanks a lot for your help.
I tried the command *" ssh-keygen -q -l -f id_rsa.pub" (id_rsa.pub was
generated by ssh-keygen before)*
It ran without throwing any error.
The output was:
*the fingerprint id_rsa.pub (RSA)*

On Mon, Oct 22, 2012 at 3:40 PM, Melanie Witt <melwitt at yahoo-inc.com> wrote:

> 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<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<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
>>
>>
>


-- 

--With Regards
Pavan Kulkarni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121022/e7af6f92/attachment.html>


More information about the Openstack mailing list