Either the needed changes aren't being packaged correctly (check
${WORKDIR}/packages-splt for openssh recipe), or the needed package
isn't being installed into the image (check
${WORKDIR}/temp/log.do_rootfs for the image).

Alex

On Tue, 25 Feb 2025 at 16:06, Daniel Kampert via
lists.yoctoproject.org
<kontakt=daniel-kampert...@lists.yoctoproject.org> wrote:
>
> Hi,
>
> I´m working on a Dunfell BSP (Toradex BSP5) and want to add and modify the 
> OpenSSH configuration. So I´ve added 
> "recipes-connectivity/openssh/openssh_%.bbappend" with this content
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>
> # Apply the SSH configuration
> # - Disable password authentication
> # - Disable X11 forwarding
> # - Enable public key authentication
> do_install_append () {
>   sed -i -e 's:^#PubkeyAuthentication.*$:PubkeyAuthentication yes:g' 
> ${D}${sysconfdir}/ssh/sshd_config
>   sed -i -e 's:^#PasswordAuthentication.*$:PasswordAuthentication no:g' 
> ${D}${sysconfdir}/ssh/sshd_config
>   sed -i -e 
> 's:^#ChallengeResponseAuthentication.*$:ChallengeResponseAuthentication no:g' 
> ${D}${sysconfdir}/ssh/sshd_config
>   sed -i -e 's:^#UsePAM.*$:UsePAM no:g' ${D}${sysconfdir}/ssh/sshd_config
>   sed -i -e 's:^#X11Forwarding.*$:X11Forwarding no:g' 
> ${D}${sysconfdir}/ssh/sshd_config
>
>   install -d 0700 ${D}${ROOT_HOME}/.ssh
>   install -m 0600 "${TOPDIR}/keys/ssh/${DEPLOY_ENV}/id_ed25519.pub" 
> ${D}${ROOT_HOME}/.ssh/authorized_keys
> }
> FILES_${PN} += "${ROOT_HOME}/.ssh/*"
>
> And I added TASK_BASIC_SSHDAEMON = "openssh-sshd openssh-sftp 
> openssh-sftp-server" to my OS configuration. The generated image contains 
> OpenSSH (I´ve checked the version) but no authorized_keys or modified 
> configuration.
>
> What is wrong here?
>
> Mit freundlichen Grüßen / With kind regards
>
> Ing. Daniel Kampert, M. Sc.
> Embedded Systems Solutions
> Address: Hauptstr. 36 | 91469 Hagenbüchach | Deutschland
> Phone: +49 (0)174 6932561
> E-Mail: kont...@daniel-kampert.de
> Web: www.daniel-kampert.de
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64867): https://lists.yoctoproject.org/g/yocto/message/64867
Mute This Topic: https://lists.yoctoproject.org/mt/111378266/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to