We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

SDK error when connecting a Jolla 1 physical device [answered]

asked 2016-09-30 00:26:58 +0300

Pasko gravatar image

updated 2016-10-02 19:48:13 +0300

Hi. I always get an error message whenever I try to connect the Sailfish SDK with my Jolla 1. "Key deployment failed: unknown error". The ssh connection test works fine, but the process gets stuck afterwards.

Captura de pantalla de 2016-09-29 23:10:02.png

Checking the directories with the public/private keys, I have noticed that the folder for the new Jolla device only contains the files for the nemo user (as opposed to the other folders containing files for nemo and root)

Captura de pantalla de 2016-09-29 23:22:10.png

Regards.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Pasko
close date 2016-10-04 17:07:06.434555

2 Answers

Sort by » oldest newest most voted
3

answered 2016-10-03 07:55:12 +0300

martyone gravatar image

updated 2016-10-03 08:44:40 +0300

It is expected that for hardware device that the root key is not deployed. This is only done for emulator.

Could you please check the logs on the device? Start 'journalctl -f' as root just before you try to add the device to Qt Creator and stop it with Ctrl-c when the failure occur. You can log in as root with the devel-su command. If needed, you can increase sshd verbosity in /etc/ssh/sshd_config.

Is there enough free space on the phone memory? Ideally check with df ~/.ssh.

Is the ~/.ssh directory accessible on the phone? It should be owned by user "nemo" and the file mode should be 0700. The ~/.ssh/authorized_keys file should have 0600 mode. See chmod(1).

edit flag offensive delete publish link more

Comments

Hi.

Just checked it out.

My authorized_keys file had mode 0400. After the change the device was connected OK.

Thank you!

Regards.

Pasko ( 2016-10-03 18:21:06 +0300 )edit
2

answered 2016-09-30 10:43:33 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2016-09-30 10:43:33 +0300

https://sailfishos.org/develop/sdk-overview/develop-firstapp-article/

edit flag offensive delete publish link more

Comments

Hi.

Thank you.

Well, I had already followed the instrucctions in the link above. Now I have tried again and found out that my Jolla C connects flawlesly :) but I * still * can't connect my Jolla 1 to the SDK.

Both devices have the same SailfishOS version installed: 2.0.2.51 Aurajoki.

Regards.

Pasko ( 2016-10-02 19:15:14 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2016-09-30 00:26:58 +0300

Seen: 298 times

Last updated: Oct 03 '16