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

SDK SSH to Phone: "ssh connection failure: server rejected key" [answered]

asked 2015-02-20 12:05:39 +0200

pLurchi gravatar image

updated 2015-02-20 22:13:47 +0200

Hi all,

yesterday I successfully connecting my Jolla Phone to SailfishOS SDK. Today it does not work anymore. I tried the followings:

  • In Preferences/Devices I created a new connection. USB and Wifi. After "deploy" it says "ssh connection failure: server rejected key"
  • checked the following post: solved Qt Creator connecting to emulator. But emulator works perfectly
  • deleted /home/nemo/.ssh . While setting up new connection wizard it is created new
  • uninstalled --> new install SailfoshOS SDK
  • Restart Developermodus
  • Restart Phone
  • Edit1: SSH Connection over terminal to phone works too.

Errormessage when debuging:

Wrote: /home/mersdk/share/build-untitled-MerSDK_SailfishOS_armv7hl-Debug/RPMS/untitled-debuginfo-0.1-1.armv7hl.rpm
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]
21:06:08: The process "/home/joris/.config/SailfishBeta1/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/deploy" exited with code 1.
Error while building/deploying project untitled (kit: MerSDK-SailfishOS-armv7hl)
When executing step 'Rpm'

Device Test gives the following:

 Connecting to host...
SSH connection failure: Server rejected key.

Device test failed.

Someone knows this error?

System: Linux Mint 64bit

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by foss4ever
close date 2015-02-22 13:19:39.454897

Comments

For easier debugging of this you should atleast provide the info about SDK and Jolla phone OS versions in which you are experiencing these problems. Also, knowing the virtualization solution and version that you are using (Virtualbox, KVM, etc..) might help..

foss4ever ( 2015-02-21 16:24:47 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-02-22 11:52:28 +0200

pLurchi gravatar image

updated 2015-02-22 11:53:45 +0200

Hi, I even found the solution. I changed the permission in /home/nemo to 777. Because there were some issues with an android file explorer. This had somehow an effect to ssh connection in SDK. I don't know why but now it is ok.

Somebody knows the factory permissions? Now I'm using 755.

Wish a sunny day for all over the world,

pLurchi

edit flag offensive delete publish link more

Comments

1

Ofc ssh rejects connection when home folder (where the .ssh dir is) permissions are set incorrectly.

The default perms for /home/nemo are drwxr-x--- in decimal 750.

Folder ownership nemo:nemo

foss4ever ( 2015-02-22 13:16:55 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2015-02-20 12:05:39 +0200

Seen: 1,045 times

Last updated: Feb 22 '15