Hi I\'m using ganymed-ssh2 java library to execute remote commands in linux workstation with success.
But now there is a situation where I need to execute a command
assuming there is a sess.getStdin(), you should be able to pipe in a password to the sudo command.
sess.getStdin()