I am currently building an application in order to learn Java. I am trying to connect to my server via SSH, execute some stuff and retrieve what the system gives me. I am using jcabi-ssh for my SSH management.
Currently I am able to SSH into the server and execute standard commands.
I am executing commands like that:
new Shell.Plain(sshpw).exec(cmd);
Where "sshpw" is a SSHByPassword object.
Now I read that I am able to execute commands through a method of the object itself instead of using shell. Since the documentations states that only the first parameter is for the command and the other three for the logging I tried the following:
sshpw.exec(cmd, System.in, System.out, System.err);
But there is absolutely no difference in output (none).
Any advice on what I do need to read up on? Dealing with external libraries is new for me so sorry if I am overlooking some major documentation.