How to change sshd_config during the Yocto build image? - iMX6ULL LXDE 2.8b7

Dear,

I edit the local.conf to adding root user password as mentioned here and here.

After build the new image, it was able to validate the root user password via serial connection. However, I had to change the sshd_config file as below to be able to perform an SSH connection.

PermitRootLogin yes
ChallengeResponseAuthentication no

How to update the sshd_config during the Yocto build image?

Thanks for any help!

System and Hardware:

  • Angstrom v2017.12 - Kernel
  • Colibri iMX6ULL 512MB IT
  • Custom board based on Aster V1.1B

Hi @CharlesDias ,

You can update the sshd_config creating into your layer a .bbappend file for the openssh package. You can take this file as a reference, it already does exactly what you want.

For more information please take a look at this Yocto documentation.

Best regards,
Daniel Morais

Hi @daniel_m.tx,

I’ll try this approach.

Thank you!