diff --git a/bgpwtf/machines/modules/router.nix b/bgpwtf/machines/modules/router.nix index bdd53360..953b277c 100644 --- a/bgpwtf/machines/modules/router.nix +++ b/bgpwtf/machines/modules/router.nix @@ -51,6 +51,13 @@ rec { # Enable the OpenSSH daemon. services.openssh.enable = true; + services.openssh.passwordAuthentication = false; + # Allow for slightly more unauthenticated connections between dropping them, + # otherwise public bruteforcing will cause DoS preventing actual users from + # logging in. + services.openssh.extraConfig = '' + MaxStartups 100:30:1000 + ''; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG599UildOrAq+LIOQjKqtGMwjgjIxozI1jtQQRKHtCP q3k@mimeomia" "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQb3YQoiYFZLKwvHYKbu1bMqzNeDCAszQhAe1+QI5SLDOotclyY/vFmOReZOsmyMFl71G2d7d+FbYNusUnNNjTxRYQ021tVc+RkMdLJaORRURmQfEFEKbai6QSFTwErXzuoIzyEPK0lbsQuGgqT9WaVnRzHJ2Q/4+qQbxAS34PuR5NqEkmn4G6LMo3OyJ5mwPkCj9lsqz4BcxRaMWFO3mNcwGDfSW+sqgc3E8N6LKrTpZq3ke7xacpQmcG5DU9VO+2QVPdltl9jWbs3gXjmF92YRNOuKPVfAOZBBsp8JOznfx8s9wDgs7RwPmDpjIAJEyoABqW5hlXfqRbTnfnMvuR informatic@InformaticPC"