"Windows10 cmd ssh" dont work on QT Console.
-
wrote on 16 Aug 2019, 22:50 last edited by
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(); }
-
wrote on 16 Aug 2019, 22:53 last edited by
What made you think "ssh" would work on Windows 10? Did you install it? ssh is not a standard Windows console command.
-
wrote on 16 Aug 2019, 23:17 last edited by BD9a
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. -
wrote on 16 Aug 2019, 23:25 last edited by
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/ -
wrote on 16 Aug 2019, 23:45 last edited by
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.
2/5