Cannot connect IDE to Device: ssh timeout. [XA2,3.1, SDK2.24, Win10]

asked 2019-09-19 09:25:13 +0200

bongo gravatar image

Well the good news is I got the build and emulator going (thanks @Edz), and managed to compile and run gpsinfo from github. Yay. Unfortunately no gps in the emulator, so need to make it run on my phone....

https://sailfishos.org/wiki/Application_SDK_Your_First_App Mer hardware device setup is done using Qt Creator’s device settings. Depending on your host environment this is found from either the menu Tools→Options→Devices

So it seems to find the XA2 plugged in usb as 192.168.2.15. XA2 prompts to connect usb as developer.

"Test connection" button -> ssh timeout.

  • tried disable windows firewall
  • tried wifi (192.168.1.67)
  • tried from gitbash (both ip): $ ssh 192.168.2.15 ssh: connect to host 192.168.2.15 port 22: Connection timed out

Is SSH on the phone at all? Is there something I have to install on the phone?

(Also annoying - Windows drops the wifi when it has the sailfish usb network connection)

edit retag flag offensive close delete

Comments

@bongo

Before sorting the build engine and emulator, I had no success trying to connect my Jolla1. I just tried it again, it asked for my ssh password several times and eventually, it connected. I can now compile and run on my device via the SDK

As long as you have developer mode activated on your device it should work and then when you ssh from cmd line, your address should look like this ssh nemo@192.168.2.15

Spam Hunter ( 2019-09-19 10:25:49 +0200 )edit

@Edz Thanks. After I did
ssh nemo@192.168.2.15 from the gitbash , the ide then connected and prompted for a password itself like it was supposed to.

bongo ( 2019-09-23 08:16:47 +0200 )edit