mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-09 19:03:36 +02:00
feat: darwin - Disable password authentication for SSH
This commit is contained in:
@@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user