What is the difference between the ‘shell’ channel and the ‘exec’ channel in JSch
An overview about the differences and similarities between these streams you can find at »Shell, Exec or Subsystem Channel« in the JSch wiki. Here some details for your use case. In the exec channel, the commands come from the command string you did give with setCommand(). The SSH server will pass them at once to … Read more