I am trying to send commands to an SSH shell using the Apache SSHD library. I have read the JavaDoc; but it is so sparse that I am having trouble understanding how to use the library.
I'm sorry I can't link to JavaDoc, but it doesn't seem to be available on the web. I am able to set up a test that sends commands and reads results using the System.in, System.out, and System.err streams. The end goal of the project though is to send a String to the shell, process the results, send another string, process the results, etc while staying in the same shell. I know I can open up multiple ChannelExecs; but that creates multiple channels.
Essentially, I want to my program to interact with the shell.