Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. check username password vps with qt
Forum Update on Monday, May 27th 2025

check username password vps with qt

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 909 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrErfan
    wrote on 6 Sept 2017, 09:59 last edited by MrErfan 9 Jun 2017, 10:21
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Sept 2017, 20:31 last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MrErfan
        wrote on 7 Sept 2017, 13:59 last edited by MrErfan 9 Jul 2017, 14:00
        #3

        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";
        }
        
        
        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 7 Sept 2017, 14:06 last edited by
          #4

          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?

          1 Reply Last reply
          2

          2/4

          6 Sept 2017, 20:31

          • Login

          • Login or register to search.
          2 out of 4
          • First post
            2/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved