Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

"Windows10 cmd ssh" dont work on QT Console.



  • 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();
    }
    
    


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



  • 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.



  • 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/



  • 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.


Log in to reply