overlay sys-auth/google-oslogin: Add an sshd config snippet

The sshd config provided by this package is now marked as provided for
compatibility only - it will be there in case there is still a symlink
in /etc pointing to it. The new config snippet will be used by the
enable oslogin stuff in the updated coreos-base/oem-gce package in
following commits.
This commit is contained in:
Flatcar Buildbot 2023-06-22 16:00:49 +02:00 committed by Krzesimir Nowak
parent d698526730
commit 8151bc3154
3 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,3 @@
# Needed for google oslogin
AuthorizedKeysCommand /usr/libexec/google_authorized_keys
AuthorizedKeysCommandUser root

View File

@ -1,5 +1,7 @@
# This is an old SSHD config file, unused in new Flatcar
# installations. We provide it for backward compatibility.
# Use most defaults for sshd configuration.
# Keep this in sync with coreos/init/configs/sshd_config
Subsystem sftp internal-sftp
ClientAliveInterval 180
UseDNS no

View File

@ -49,6 +49,7 @@ src_install() {
# config files the base Ignition config will create links to
insinto /usr/share/google-oslogin
doins "${FILESDIR}/sshd_config"
doins "${FILESDIR}/60-flatcar-google-oslogin.conf"
doins "${FILESDIR}/nsswitch.conf"
doins "${FILESDIR}/pam_sshd"
doins "${FILESDIR}/oslogin-sudoers"