diff options
Diffstat (limited to 'ssh.nix')
| -rw-r--r-- | ssh.nix | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +{...}:{ + services.fail2ban.enable = true; + + services.openssh = { + enable = true; + ports = [26802]; + authorizedKeysInHomedir = false; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + AllowUsers = [ "kassouni" "git" ]; + KbdInteractiveAuthentication = false; + PubkeyAuthentication = true; + }; + }; +} |
