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 Updated to NodeBB v4.3 + New Features

check username password vps with qt

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 929 Views 2 Watching
  • 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.
  • MrErfanM Offline
    MrErfanM Offline
    MrErfan
    wrote on last edited by MrErfan
    #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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      • MrErfanM Offline
        MrErfanM Offline
        MrErfan
        wrote on last edited by MrErfan
        #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
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on 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

          • Login

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