Open rbraken opened 5 years ago
As we cannot create a use for privilege separation on Android (at least I have no idea how to reliably achieve that), I have patched the newer OpenSSH versions to still allow sshd as root without privilege separation (upstream removes this gradually).
We still need to explicitly disable privilege separation with UsePrivilegeSeparation no
in the config file.
The config file shipped with this package already has this option set (https://github.com/Magisk-Modules-Repo/ssh/blob/master/common/sshd_config#L152), so I think it cannot be loaded correctly.
Could you check if the file /data/ssh/sshd_config
exists, looks valid, contains the UsePrivilegeSeparation no
-setting and has proper permissions (mine has owner root, group root, perms 644)?
If it doesn't, you can try removing the file (or the whole /data/ssh
directory really), and then reinstall MagiskSSH.
On my phone(s) installing the module does not install the config or create the /data/ssh folder structure.
I haven't yet gotten ssh to work yet as I just realized this and am copying the config from this repo into the correct location. Not sure if its on purpose,
NVM,
the /data/ is not the /data on the "storage" card, but rather the actual system root. Derp.
Oneplus 3 with Android Pie (Oxygen OS) works fine with Magisk SSH, woot, thank you!
Hi, it seems the service is not starting:
When trying to start with ./sbin/.magisk/img/ssh/opensshd.init start I get an error message: Privilege separation user sshd does not exist
(oneplus with lineageos 15.1)
Any idea's?
Greetimgs René