All of lore.kernel.org
 help / color / mirror / Atom feed
* Overriding openssh sshd_config file in custom recipe
@ 2017-10-20 12:24 Andreas Enbacka
  2017-10-20 13:03 ` Joshua Watt
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Enbacka @ 2017-10-20 12:24 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

Hello,

 

I am trying to create a .bbappend file to customize the default sshd_config
file as part of the default openssh package in Yocto Fido. In the custom
file I attempt to disable root login access by setting the PermitRootLogin
to No. However, after building and installing the image on the custom SMARC
board, the content of the sshd_config file still enables login
(PermitRootLogin Yes). I have checked the content of the installed rootfs
before deploying to the board, and the content of the sshd_config file is
correct (disables root login). What could be the cause of this? Is some
other process modifying the content of the config file?

 

Best regards,

Andreas Enbacka

 


[-- Attachment #2: Type: text/html, Size: 2700 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Overriding openssh sshd_config file in custom recipe
  2017-10-20 12:24 Overriding openssh sshd_config file in custom recipe Andreas Enbacka
@ 2017-10-20 13:03 ` Joshua Watt
  0 siblings, 0 replies; 2+ messages in thread
From: Joshua Watt @ 2017-10-20 13:03 UTC (permalink / raw)
  To: Andreas Enbacka, yocto

On Fri, 2017-10-20 at 15:24 +0300, Andreas Enbacka wrote:
> Hello,
>  
> I am trying to create a .bbappend file to customize the default
> sshd_config file as part of the default openssh package in Yocto
> Fido. In the custom file I attempt to disable root login access by
> setting the PermitRootLogin to No. However, after building and
> installing the image on the custom SMARC board, the content of the
> sshd_config file still enables login (PermitRootLogin Yes). I have
> checked the content of the installed rootfs before deploying to the
> board, and the content of the sshd_config file is correct (disables
> root login). What could be the cause of this? Is some other process
> modifying the content of the config file?

If "debug-tweaks" is in IMAGE_FEATURES, it will always allow root login
 with an empty password as a post processing step in the filesystem
image generation. See ssh_allow_empty_password in meta/classes/rootfs-
postcommands.bbclass

>  
> Best regards,
> Andreas Enbacka
>  



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-20 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-20 12:24 Overriding openssh sshd_config file in custom recipe Andreas Enbacka
2017-10-20 13:03 ` Joshua Watt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.