And in the Amazon GUI it shows up with a matching name and fingerprint
under key pairs. So I guess when I try to login, using my id_rsa key (as
the provided source does) it doesn't work because it created a new pair.

AdminAccess.standard() should, by default, attempt to associate your *public* key with whatever nodes it creates. Specifically [1], it will look for

System.getProperty("user.home") + "/.ssh/id_rsa.pub"
System.getProperty("user.home") + "/.ssh/id_rsa"

both of which need to be UTF-8 files. If it can load those, it should create a key pair in EC2 that matches the fingerprint of your local key. If it is unable to load those, it will indeed generate a new key pair.

Do you have both of those files, or perhaps only id_rsa?

ap

[1] https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/compute/config/AdminAccessConfiguration.java

Reply via email to