Have you had an opportunity to look at
http://code.google.com/p/jclouds/wiki/ComputeGuide#Authorizing_your_RSA_SSH_Public_Key
If that looks like what you're doing and it's not working, please post
a code sample. Thanks!
ap
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jclouds?hl=en.
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.
Glad you made progress!
I'm guessing we don't know what the login user is of your private image.
If this is the case, either
set TemplateOption.overrideLoginUserWith("my_user")
or
setup jclouds to parse your private image:
http://code.google.com/p/jclouds/wiki/EC2#Parsing_private_images
You might also want to disable parsing of other images, if you only
use yours. This will really help performance.
properties.setProperty(PROPERTY_EC2_AMI_QUERY,
"owner-id=YOUR_ID_HERE;state=available;image-type=machine");
...createContext(access, secret, modules, properties);
-A
Amazon does not store the private key of your keypair, so you need to
supply it, if you want to ssh in and do anything on the machine (such
as authorize another key)
There's 2 ways you can do this. as a templateOption,
overrideLoginCredentialWith(your_id_rsa_string) or
overrideCredentialsWith(new Credentials("root", your_id_rsa_string))
Keep in mind that authorizePublicKey() is redundant, if it is the same
as what corresponds to the keyPair() option.
WRT the security group, jclouds creates a security group for you, with
rules corresponding to the inboundPorts() option (defaults to open
poer 22), unless you use the option
EC2TemplateOptions.securityGroups().
Note, the more you use features like security groups and keypairs, the
less portable your code will be across clouds.
-A
I can see this needs to be clarified. Bear with me a bit and I'll
send over an example that does exactly what you are looking for.
Cheers,
-Adrian
-Adrian
> --
> You received this message because you are subscribed to the Google Groups
> "jclouds" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/jclouds/-/neyHzGdp0QcJ.