I am trying to do sudo su - myuser to get access to that user using JSCH. Thats the only way I could have access to that user. But that asks for a password. Is there a way in JSCP to provide password to this prompt. Also I see that the program never dies once it gets that message.
I believe a new terminal is being created but I dont know how to actually pass a password to that terminal using JSCH.
Any feedback will be greatly appreciated.