enable SSH server

This commit is contained in:
Daniel Langbein 2023-08-18 19:41:21 +02:00
parent c0c718b36c
commit fae044fc5d

View File

@ -151,8 +151,14 @@
# List services that you want to enable: # List services that you want to enable:
# Enable the OpenSSH daemon. # Enable SSH server.
# services.openssh.enable = true; services.openssh = {
enable = true;
# Forbid root login through SSH.
settings.PermitRootLogin = "no";
# Use authorized keys only.
settings.PasswordAuthentication = false;
};
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];