###################################################################################### ### Enables SSH Services (Pretty Print) #services.openssh = { # enable = true; # ports = [ 22 ]; # settings = { # PasswordAuthentication = true; #set to false only after public key is setup / security key is setup # AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ] # AllowUsers = user; # Allows all users by default. Can be [ "user1" "user2" ] # UseDns = true; # X11Forwarding = false; # PermitRootLogin = "prohibit-password"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no" # }; #}; ###################################################################################### ### Enables SSH Services, fullpath view services.openssh.enable = true; services.openssh.ports = [ 22 ]; services.openssh.settings.PasswordAuthentication = true; #set to false only after public key is setup / security key is setup # services.openssh.settings.AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ] services.openssh.settings.AllowUsers = user; # Allows ONLY "user" users services.openssh.settings.UseDns = true; services.openssh.settings.X11Forwarding = false; services.openssh.settings.PermitRootLogin = "prohibit-password"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no" ######################################################################################