Re: [yocto] Disabling SSH by default (but keeping the service)

2022-10-13 Thread Josef Holzmayr
Hi Maik, this is a number of things being mixed up. 1) a recipe cannot affect another recipe. the image is a recipe, sshd is a recipe. so you either can set this in a bbappend to thesshd recipe, or in a config file (distro, machine, local) - but not in the image. 2) the override separator is :

Re: [yocto] Disabling SSH by default (but keeping the service)

2022-10-13 Thread Leon Woestenberg
Hello Maik, On Thu, Oct 13, 2022 at 3:17 PM Maik Vermeulen wrote: > We tried two things to disable SSH by default in our image recipe: > However, both methods don't seem to work. Hmm, something else might override it elsewhere? I don't know. Seems like a similar question came up in

[yocto] Disabling SSH by default (but keeping the service)

2022-10-13 Thread Maik Vermeulen
Hi, We tried two things to disable SSH by default in our image recipe: inherit systemd SYSTEMD_AUTO_ENABLE_openssh-sshd = "disable" pkg_postinst_ontarget_openssh () { systemctl disable --now sshd.socket } However, both methods don't seem to work. We can still SSH to the device. Furthermore,