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. SSH and SCP in Windows-Hypervisor
QtWS25 Last Chance

SSH and SCP in Windows-Hypervisor

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.6k 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.
  • A Offline
    A Offline
    akashmetawala
    wrote on last edited by
    #1

    Hi Guys,

    I am learning development with QT and have started my first project. I am running a Hypervisor based Windows OS with QT5 on it. What I want to do is when I click a button, I want to copy my linux script over to the linux side with its ip 192.168.0.200 and then ssh into root and execute the script.

    Now, the problems that I am facing is, I have my GUI and application set up, but when I try to run the SCP and SSH command using system() it gives me the following error:

    FOR SSH: I am ruuning system("PATH=%some path that I want to set% && ssh -T -o StrictHostKeyChecking=no root@192.168.0.200");
    Its giving me: Warning: Permanently added '192.168.0.200' (RSA) to the list of known hosts
    Permission denied, please try again
    Permission denied, please try again
    permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

    FOR SCP: I am running system("PATH=%some path that I want to set% && scp -o StrictHostKeyChecking=no cygdrive/c/somepath root@192.168.0.200:/tmp/");
    Its giving me: Could not create directory '/home/user/.ssh'
    Failed to add the host to the list of known hosts
    permission denied, please try again
    permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
    lost connection

    I have been trying to find a solution since long. Would be really glad if someone could help me out.

    Thank you in advance.

    --
    Akash

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Not really a Qt topic, you should first ensure that your ssh client and server are properly configured

      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
      • A Offline
        A Offline
        akashmetawala
        wrote on last edited by
        #3

        Hi Guys,

        So there has been some development from yesterday. The errors still exist but comes up in the IDE console. When I go to build and do qmake and run the .exe file, it opens up my app, cmd and prompts me for password. So it works that way, which is weird.

        I wouldn't care about the problem in IDE console if what I mentioned above means that I am good to release my .exe file. Please let me know if I am missing something, cause if something fails, it should fail on the .exe too right?

        Thanks in advance.

        --
        Akash

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you share your code ?

          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

          • Login

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