Ssh connection not working from Qt Creator



  • 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


  • Lifetime Qt Champion

    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 ?



  • 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



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.