Skip to content
Advertisement

Tag: sshd

how to execute remote commands using apache mina sshd

I am trying to execute remote commands on an SSHServer running on my local windows machine. I am able to run simple command like “whoami” but failing to run something like “java -version” or “dir” Here is my code so far, can you tell where I am going wrong? SSHServer.java SSHClient.java TestSSH.java here is the output for “whoami”: here is

Advertisement