Is there a setting somewhere in the source that will enable SSH by default so it's enabled, just like samba, immediately after the first boot without the user having to toggle it on?
Enabling SSH by Default after Compile
-
Mrfixit2001 -
February 1, 2018 at 2:22 PM -
Thread is Unresolved
-
-
I might be wrong, but I think the Leia versions do have ssh configured by default.
-
Leia has it configured but the user still needs to manually toggle it on. I want to enable this by default after compile.
-
Add "ssh" to CMDLINE in kernel config.
-
- Official Post
There are two ways to achieve this. If you add 'ssh' to kernel boot params it is forced on permanently. You will find the GUI option to disable is then hidden because permanently means permanently. If you patch the default value in the LE settings add-on code you can change the default without compromising the ability to later turn it off, which is a good thing for security.
-
I agree and prefer the idea of editing the LE settings. Which package file or add on file holds this setting that I should edit?
-
- Official Post
It's in LE settings python code.
-
Any chance you could point me to the file I'm looking for? I can find it in the code but haven't had any luck finding the file
-
- Official Post
-
- Official Post
enable samba at wizard · LibreELEC/service.libreelec.settings@96066ba · GitHub
^^^ with that commit samba was enabled by default -
You can also modify the openSSH package:
But not sure how secure this is.