[SOLVED] ssh connection
-
HI,
I have written a bash script on my linux server and i want to display the resulting output in a dialog->textbrowser (Qt Creator in Windows platform).
I see some posts discussing this issue but i am confused. Isnt there a simple in-built class solution to ssh using user name , password and then start process <QProcess> to grab the output ?Probable solutions i see otherwise are : libssh, LibQxt
Thanks
-
Hi All,
I fixed my problem temporarily. I had to make sure that i have access to both client/server via passkeys.
And then all the we have to do is something simple as this :QProcess *proc = new QProcess();
proc->start("ssh server_name /path/to/shell/script");
proc->waitForFinished();QString result=proc->readAllStandardOutput();
ui->textBrowser->setText(result); //writing the result to my text browserThanks,
Hope this helps.