nixos/ssh: allow PrintMotd to be enabled
This commit is contained in:
parent
2e51a2fd03
commit
3fd9ef4b40
|
@ -490,6 +490,8 @@ in
|
||||||
{manpage}`sshd_config(5)` for details.
|
{manpage}`sshd_config(5)` for details.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
# Disabled by default, since pam_motd handles this.
|
||||||
|
PrintMotd = mkEnableOption "printing /etc/motd when a user logs in interactively";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -656,7 +658,6 @@ in
|
||||||
${optionalString cfg.allowSFTP ''
|
${optionalString cfg.allowSFTP ''
|
||||||
Subsystem sftp ${cfg.sftpServerExecutable} ${concatStringsSep " " cfg.sftpFlags}
|
Subsystem sftp ${cfg.sftpServerExecutable} ${concatStringsSep " " cfg.sftpFlags}
|
||||||
''}
|
''}
|
||||||
PrintMotd no # handled by pam_motd
|
|
||||||
AuthorizedKeysFile ${toString cfg.authorizedKeysFiles}
|
AuthorizedKeysFile ${toString cfg.authorizedKeysFiles}
|
||||||
${optionalString (cfg.authorizedKeysCommand != "none") ''
|
${optionalString (cfg.authorizedKeysCommand != "none") ''
|
||||||
AuthorizedKeysCommand ${cfg.authorizedKeysCommand}
|
AuthorizedKeysCommand ${cfg.authorizedKeysCommand}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user