check username password vps with qt
-
wrote on 6 Sept 2017, 09:59 last edited by MrErfan 9 Jun 2017, 10:21
Hello friends, I want to check if: My vps username and password are correct.(IP:PORT/USERNAME/PASSWORD)
I used the libssh library, but the program stops running after it's executed :(
Which class or library should I use?
Thanks -
Hi,
What do you mean by "the program stops" ? It crashes ?
-
wrote on 7 Sept 2017, 13:59 last edited by MrErfan 9 Jul 2017, 14:00
The program has unexpectedly finished.
C:\Users\xxX\Documents\build-untitled-Desktop_Qt_5_8_0_MSVC2015_32bit-Debug\debug\untitled.exe crashed..Pro
# Libssh: LIBS += -L$$PWD'/libssh/lib/' -lssh INCLUDEPATH += $$PWD'/libssh/include/'
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::test() { ssh_session my_ssh_session = ssh_new(); if (my_ssh_session == NULL) exit(-1); ssh_free(my_ssh_session); qDebug() << "Test"; }
-
Hi
Where does it crash ?
If you single step with debugger, what line kills it?
if its before main() , its most likely something with the
libssh so/dll.
Did you compiled them yourself so they are clearly for vs215?
2/4