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

Open SSH cant login as root after Update to 2.0.1.7

asked 2016-01-20 18:29:20 +0300

monkeyisland gravatar image

Hello yesterday i updatet my Jolla phone with the earlyaccess to 2.0.1.7. Since today i have a problem to connect from another computer to my jolla phone as root. Terminal output for: rpm - qa | grep openssh openssh-server-7.1p1-10.3.2.jolla.armv7hl openssh-clients-7.1p1-10.3.2.jolla.armv7hl openssh-7.1p1-10.3.2.jolla.armv7hl

Developer mode is on.

i can log in from terminal with devel-su or su with my password.

from remoteserver it says permission denied please try again.

edit retag flag offensive close delete

Comments

7

I'd consider this as a feature, not a bug

lenggi ( 2016-01-20 18:37:31 +0300 )edit
1

2 Answers

Sort by » oldest newest most voted
4

answered 2016-01-20 18:44:23 +0300

Kollin gravatar image

I think this is intentional i.e. security enhancement (feature).

To get root privileges you have to know user and root passwords and direct root ssh requests are denied. I like it. ;)

edit flag offensive delete publish link more

Comments

Okay i think i dont edit the sshd config. I will copy only on nemo. It is more secure.

monkeyisland ( 2016-01-20 18:58:57 +0300 )edit
2

iirc only password login is prohibited, so key-auth should actually work

chemist ( 2016-01-20 19:16:31 +0300 )edit

If you want ecdsa keys you have to upgrade openssh from openrepos. The default one is from Babylonian times.

Kollin ( 2016-01-20 21:19:05 +0300 )edit
1

@Kollin Wouldn't say it's that old because the newest release is 7.1p2 and SFOS has 7.1p1.

tigeli ( 2016-01-20 23:30:57 +0300 )edit

@tigeli

OMG!!! Jolla actually updated openssh!!! I don't believe it!

Is this true? Or you are having openrepos version?

O.o

Kollin ( 2016-01-20 23:47:16 +0300 )edit
4

answered 2016-01-20 21:27:17 +0300

Schturman gravatar image

yep, who need direct root access, can just edit sshd_config file a little bit...
Change this line:
#PermitRootLogin prohibit-password
To this one:
PermitRootLogin yes

edit flag offensive delete publish link more

Comments

Thanks, but can you explain how to do ?

predator ( 2016-01-20 22:57:18 +0300 )edit
3

With any root filemanager.... Personally I prefer FileTug (FileTug As Root from openrepos). Just go to /etc/ssh and open file sshd_config. Edit this line and save file. After this WinSCP connected as before ;)

Schturman ( 2016-01-21 21:55:13 +0300 )edit

10 chars. Thank you very much

predator ( 2016-01-24 01:09:17 +0300 )edit

Remember: when you disable/enable dev mode, sshd_config will be restored to its default formulation. You will need to edit it again.

objectifnul ( 2017-11-22 14:10:05 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2016-01-20 18:29:20 +0300

Seen: 865 times

Last updated: Jan 20 '16