0
我已連接到遠程ubuntu服務器。在連接時,我想執行以下jsch和從特定目錄運行sudo
String command = "cd "to some directory" ;
sudo ./i3lsdd";
// want to move to a directory and execute sudo ./i3lsdd command.
我用下面的代碼shell命令,但它給這個錯誤:
"sudo: no tty present and no askpass program specified Sorry, try again."
任何幫助,高度讚賞。