I think the only thing portable would be to get the key signature. There's a utility called SshKeys that can help. I agree we can make a portable SshKeyExtension, present on many clouds probably half of them. Something you can help with?
-A
Hi All,
Is there a way to retrieve public key from an EC2 KeyPair? I can't see any operation in the API at [1]. But in Openstack KeyPair API [2], we have a way to get the public key.
Shouldn't there be a higher level interface common to all IaaSes? Are there IaaS providers who don't allow key pairs?
[1] http://demobox.github.com/jclouds-maven-site-1.5.2/1.5.2/ec2/apidocs/org/jclouds/ec2/domain/KeyPair.html
[2] http://demobox.github.com/jclouds-maven-site-1.5.2/1.5.2/openstack-nova/apidocs/org/jclouds/openstack/nova/v2_0/domain/KeyPair.html
--
Thanks & regards,
Nirmal
Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
--
You received this message because you are subscribed to the Google Groups "jclouds" group.
To post to this group, send email to jcl...@googlegroups.com.
To unsubscribe from this group, send email to jclouds+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jclouds?hl=en.
Let's see.. so in ec2, KeyPairClient.getKeyPair gives you the sha1 or the ssh fingerprint of the private key, depending on whether it was imported or generated by ec2. There's javadoc on KeyPair that shows corresponding SshKeys ops, but that could probably be improved.
That's all for now.. gotta run!
On Thu, Nov 1, 2012 at 9:02 PM, Adrian Cole <adrian...@gmail.com> wrote:
I think the only thing portable would be to get the key signature. There's a utility called SshKeys that can help. I agree we can make a portable SshKeyExtension, present on many clouds probably half of them. Something you can help with?
I could give a try! :-) Any more pointers on where should I look at?