I want to connect to a server using ssh and run an executable on the server from my local Java code. I am aware of the thread SSH connection with Java but the trouble is I can not figure out how to use sftpChannel (an object of ChannelSftp) to run a file rather than open a file.
If this can not be done using JSch, how should I do if I want to call a exe file remotely in Java.
Thanks very much!