feat: darwin - Disable password authentication for SSH

This commit is contained in:
Ryan Yin
2024-02-23 20:12:53 +08:00
parent fa492e0b26
commit 629ef6e451

View File

@@ -17,4 +17,10 @@ in {
StandardErrorPath = "${homeDir}/Library/Logs/gnupg-agent.stderr.log";
StandardOutPath = "${homeDir}/Library/Logs/gnupg-agent.stdout.log";
};
# Disable password authentication for SSH
environment.etc."ssh/sshd_config.d/200-disable-password-auth.conf".text = ''
PasswordAuthentication no
KbdInteractiveAuthentication no
'';
}