ssh-generator: support ssh.ephemeral-key.all-users

This commit is contained in:
Sam Leonard
2024-03-07 14:43:28 +00:00
parent 2042aebb55
commit 071155a1fb

View File

@@ -108,8 +108,9 @@ static int make_sshd_template_unit(
"Description=OpenSSH Per-Connection Server Daemon\n"
"Documentation=man:systemd-ssh-generator(8) man:sshd(8)\n"
"[Service]\n"
"ExecStart=-%s -i\n"
"StandardInput=socket",
"ExecStart=-%s -i -o \"AuthorizedKeysFile ${CREDENTIALS_DIRECTORY}/ssh.ephemeral-authorized_keys-all .ssh/authorized_keys\"\n"
"StandardInput=socket\n"
"ImportCredential=ssh.ephemeral-authorized_keys-all",
sshd_binary);
r = fflush_and_check(f);