android - Is it possible to execute commands remotely (ssh), through a Java program -
i looking ssh ubuntu server via (java) api. possible?
here looking exactly:
- i have setup openstack on ubuntu machine.
- launched instance ubuntu server.
- installed android sdk on virtual machine.
- by ssh-ing virtual machine, able create avd , run emulator (headless).
what plan provide web client start emulator @ click of button (considering set i.e virtual machine , running sdk installed).
i guess need execute command start emulator. possible via (java) api? had openstack4j , jclouds not find much. tried figure out using ssh client library. right?
anything missing here?
have @ cloudserverspublish.java example, in particular configureandstartwebserver()
method.
also note how sshjsshclientmodule
added computeservicecontext
in constructor.
you'll need make sure have jclouds-sshj
dependency.
<dependency> <groupid>org.apache.jclouds.driver</groupid> <artifactid>jclouds-sshj</artifactid> <version>1.9.0</version> </dependency>
Comments
Post a Comment