Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Ssh connection not working from Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Ssh connection not working from Qt Creator

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 3 Posters 3.1k 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.
  • V Offline
    V Offline
    Veepee
    wrote on last edited by Veepee
    #1

    I am trying to do remote debugging of a Qt application running in a linux simulator from my Ubuntu PC. When I try to connect the simulation IP over ssh from Qt creator, the device test connection always fails with connection timeout error. But ssh connection to Linux simulator is successful from my Ubuntu terminal.

    Later I read from some of the posts where it was mentioned to try with dropbear. Installed dropbear in my simulator and when connected from Qt creator in ubuntu ,the device Connection is successful. But the Connection is successful only with one version of Simulator and always fails with a specific version (company specific )of Simulator. I have two questions

    1. Are there are any special libraries or binaries required for dropbear which I am missing in my rootfs of ( not working version of Linux simulator) . Tried various options but in vain
    2. Why is direct ssh connection (port 22) not working with Qt creator to Simulator.

    Desktop Version:
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.5 LTS
    Release: 14.04

    Desktop SSL:
    openssl version -a
    OpenSSL 1.0.1f 6 Jan 2014
    built on: Mon Jan 30 20:38:38 UTC 2017

    SSL Version in dropbear connection successful version of Simulator:
    openssl version
    OpenSSL 1.0.2l 25 May 2017

    SSL Version in dropbear not working version of Simulator:
    openssl version
    OpenSSL 1.0.2g 1 Mar 2016

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

      Hi and welcome to devnet,

      Can you compare the version of OpenSSL used on your machine and simulator ?

      What version of Qt Creator are you talking about ?
      What distribution are you running ?

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

        Desktop Version:
        Distributor ID: Ubuntu
        Description: Ubuntu 14.04.5 LTS
        Release: 14.04

        Desktop SSL:
        openssl version -a
        OpenSSL 1.0.1f 6 Jan 2014
        built on: Mon Jan 30 20:38:38 UTC 2017

        SSL Version in dropbear connection successful version of Simulator:
        openssl version
        OpenSSL 1.0.2l 25 May 2017

        SSL Version in dropbear not working version of Simulator:
        openssl version
        OpenSSL 1.0.2g 1 Mar 2016

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Veepee
          wrote on last edited by
          #4

          Firewall was the issue.
          It worked fine when i gave the below command in simulator:
          iptables -A INPUT -p tcp --dport 2022 -j ACCEPT

          1 Reply Last reply
          1
          • V Veepee

            I am trying to do remote debugging of a Qt application running in a linux simulator from my Ubuntu PC. When I try to connect the simulation IP over ssh from Qt creator, the device test connection always fails with connection timeout error. But ssh connection to Linux simulator is successful from my Ubuntu terminal.

            Later I read from some of the posts where it was mentioned to try with dropbear. Installed dropbear in my simulator and when connected from Qt creator in ubuntu ,the device Connection is successful. But the Connection is successful only with one version of Simulator and always fails with a specific version (company specific )of Simulator. I have two questions

            1. Are there are any special libraries or binaries required for dropbear which I am missing in my rootfs of ( not working version of Linux simulator) . Tried various options but in vain
            2. Why is direct ssh connection (port 22) not working with Qt creator to Simulator.

            Desktop Version:
            Distributor ID: Ubuntu
            Description: Ubuntu 14.04.5 LTS
            Release: 14.04

            Desktop SSL:
            openssl version -a
            OpenSSL 1.0.1f 6 Jan 2014
            built on: Mon Jan 30 20:38:38 UTC 2017

            SSL Version in dropbear connection successful version of Simulator:
            openssl version
            OpenSSL 1.0.2l 25 May 2017

            SSL Version in dropbear not working version of Simulator:
            openssl version
            OpenSSL 1.0.2g 1 Mar 2016

            N Offline
            N Offline
            Nandhu
            wrote on last edited by
            #5

            @Veepee Am trying to do ssh connection using qt program. Can you let me know how to create a ssh connection using qt creator. In some post i read Qt doesnt support ssh connection.

            V 1 Reply Last reply
            0
            • N Nandhu

              @Veepee Am trying to do ssh connection using qt program. Can you let me know how to create a ssh connection using qt creator. In some post i read Qt doesnt support ssh connection.

              V Offline
              V Offline
              Veepee
              wrote on last edited by
              #6

              @Nandhu You may need to use Dropbear SSH to establish ssh connection with Qt creator.

              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