jcraft
Jsch – Java Implementation of SSH
Apr 24th
I’m using jsch in an android application to execute a variety of commands on a host machine.
The commands will produce standard output, which will be captured by the mobile device and stored in a file. Jsch is relatively robust as compared to sshj. In either case importing the classes into an Eclipse project is rather straight forward, just make sure the folders in the jsch package are properly imported to a com.jcraft.* class. The default package will throw dependency errors particularly with jzlib, which is required for ssh compression. Also provideded is a java based implementation of zlib, which imports to com.jcraft.jzlib.
All in all initialize a new jsch object your ready to start coding your ssh protocol for your mobile device.