I downloaded the jclouds-examples. So I'm following the compute-basics
readme and I did the mvn install, and put a key in
%userprofile%\.ssh\id_rsa.
It appears to install and run fine and I see VMs created with:
java -jar target/compute-basics-jar-with-dependencies.jar aws-ec2 accesskey
secretkey mygroup add

However, the echo hello fails, and I can't exec ls. It seems it's not using
my id_rsa key, because I can't log in with that using putty, but a mygroup
key that either it or amazon generated that I can see named in the Amazon
UI. My error is
-  <<authenticated>> woke to: net.schmizz.sshj.userauth.UserAuthException:
publickey auth failed
net.schmizz.sshj.userauth.UserAuthException: Exhausted available
authentication methods
        at
net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:114)
~[compute-basics-jar-with-dependencies.jar:na]
        at net.schmizz.sshj.SSHClient.auth(SSHClient.java:205)
~[compute-basics-jar-with-dependencies.jar:na]

Am I missing a step or is the code incomplete?
Thanks!

Reply via email to