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, this is the unit list:
sshdgenkeys.service loaded active exited OpenSSH Key
Generation
system-sshd.slice loaded active active
system-sshd.slice
sshd.socket loaded active listening sshd.socket
We are on openssh_7.6p1.
Any ideas why this is happening?
Kind regards,
Maik Vermeulen
Embedded Software Engineer — Lightyear <https://www.lightyear.one/>
+31 6 16 82 73 79 <+31616827379>
--
<https://lightyear.one/careers?utm_source=signature&utm_campaign=spotlightroles&utm_medium=email#vacancies>
--
Automotive Campus 70 —5708 JZ Helmond, the Netherlands
www.lightyear.one
<https://lightyear.one/>
<https://www.linkedin.com/company/lightyear.one/>
This email may contain information which is privileged and/or
confidential. If you received this e-mail in error, please notify us
immediately by e-mail and delete the email without copying or disclosing
its contents to any other person. Lightyear is a trade name of Atlas
Technologies B.V. and is registered at the Dutch Chamber of Commerce under
number 67264298.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58330): https://lists.yoctoproject.org/g/yocto/message/58330
Mute This Topic: https://lists.yoctoproject.org/mt/94303163/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-