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. "Windows10 cmd ssh" dont work on QT Console.
Forum Updated to NodeBB v4.3 + New Features

"Windows10 cmd ssh" dont work on QT Console.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 380 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.
  • B Offline
    B Offline
    BD9a
    wrote on 16 Aug 2019, 22:50 last edited by
    #1

    Hello, I want to make an app, but

    system("ssh");
    

    won't work. Output is:

    'ssh' is not recognized as an internal or external command,
    operable program or batch file.
    

    On normal Windows CMD "ssh" and other commands work's normally.

    #include <QCoreApplication>
    #include <iostream>
    #include <stdlib.h>
    
    int main(int argc, char *argv[])
    {
        QCoreApplication a(argc, argv);
    
    
        system("mkdir /?");
        std::cout << std::endl;
        std::cout << std::endl;
        std::cout << std::endl;
        system("ssh");
    
        return a.exec();
    }
    
    
    1 Reply Last reply
    0
    • F Offline
      F Offline
      fcarney
      wrote on 16 Aug 2019, 22:53 last edited by
      #2

      What made you think "ssh" would work on Windows 10? Did you install it? ssh is not a standard Windows console command.

      C++ is a perfectly valid school of magic.

      1 Reply Last reply
      1
      • B Offline
        B Offline
        BD9a
        wrote on 16 Aug 2019, 23:17 last edited by BD9a
        #3

        I didnt installed it or I dont remember when I installed it.

        EDIT: Fresh installed Win10 on vbox have "SSH" command in cmd. It's Win10 Pro x64 on both machines (iso downloaded January 2019).
        I found it's default installed with April 2018 Update.

        1 Reply Last reply
        1
        • F Offline
          F Offline
          fcarney
          wrote on 16 Aug 2019, 23:25 last edited by
          #4

          Dang it! Well this is new. I guess I don't Windows 10 enough.
          https://www.howtogeek.com/336775/how-to-enable-and-use-windows-10s-built-in-ssh-commands/

          C++ is a perfectly valid school of magic.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BD9a
            wrote on 16 Aug 2019, 23:45 last edited by
            #5

            Probably found solution. In VS x64 compiler it work normally. In Mingw I have only 32-bit compilers well configured. 64bit compilers dont work for me in Qt.

            1 Reply Last reply
            0

            1/5

            16 Aug 2019, 22:50

            • Login

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