check username password vps with qt



  • 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


  • Lifetime Qt Champion

    Hi,

    What do you mean by "the program stops" ? It crashes ?



  • 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";
    }
    
    

  • Qt Champions 2016

    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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.