I can\'t figure it out how I can send commands via JSch shell channel.
I do this, but it doesn\'t work:
JSch shell = new JSch();
String command = \"c
Usage:
String remoteCommandOutput = exec("ssh://user:pass@host/work/dir/path", "ls -t | head -n1");
String remoteShellOutput = shell("ssh://user:pass@host/work/dir/path", "ls")
shell("ssh://user:pass@host/work/dir/path", "ls", System.out)
shell("ssh://user:pass@host", System.in, System.out);
Implementation