git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19138 from nhooyr/openssh
cd673d3Jörg Thalheim
nixos/modules/services/networking/ssh/sshd.nix+2−2
@@ -102,8 +102,8 @@ in
102 };
102 };
103
103
104 permitRootLogin = mkOption {
104 permitRootLogin = mkOption {
105− default = "without-password";
105+ default = "prohibit-password";
106− type = types.enum ["yes" "without-password" "forced-commands-only" "no"];
106+ type = types.enum ["yes" "without-password" "prohibit-password" "forced-commands-only" "no"];
107 description = ''
107 description = ''
108 Whether the root user can login using ssh.
108 Whether the root user can login using ssh.
109 '';
109 '';
nixos/modules/virtualisation/amazon-image.nix+1−1
@@ -138,7 +138,7 @@ let cfg = config.ec2; in
138 # Allow root logins only using the SSH key that the user specified
138 # Allow root logins only using the SSH key that the user specified
139 # at instance creation time.
139 # at instance creation time.
140 services.openssh.enable = true;
140 services.openssh.enable = true;
141− services.openssh.permitRootLogin = "without-password";
141+ services.openssh.permitRootLogin = "prohibit-password";
142
142
143 # Force getting the hostname from EC2.
143 # Force getting the hostname from EC2.
144 networking.hostName = mkDefault "";
144 networking.hostName = mkDefault "";
nixos/modules/virtualisation/azure-common.nix+1−1
@@ -24,7 +24,7 @@ with lib;
24 # Allow root logins only using the SSH key that the user specified
24 # Allow root logins only using the SSH key that the user specified
25 # at instance creation time, ping client connections to avoid timeouts
25 # at instance creation time, ping client connections to avoid timeouts
26 services.openssh.enable = true;
26 services.openssh.enable = true;
27− services.openssh.permitRootLogin = "without-password";
27+ services.openssh.permitRootLogin = "prohibit-password";
28 services.openssh.extraConfig = ''
28 services.openssh.extraConfig = ''
29 ClientAliveInterval 180
29 ClientAliveInterval 180
30 '';
30 '';
nixos/modules/virtualisation/brightbox-image.nix+1−1
@@ -103,7 +103,7 @@ in
103 # Allow root logins only using the SSH key that the user specified
103 # Allow root logins only using the SSH key that the user specified
104 # at instance creation time.
104 # at instance creation time.
105 services.openssh.enable = true;
105 services.openssh.enable = true;
106− services.openssh.permitRootLogin = "without-password";
106+ services.openssh.permitRootLogin = "prohibit-password";
107
107
108 # Force getting the hostname from Google Compute.
108 # Force getting the hostname from Google Compute.
109 networking.hostName = mkDefault "";
109 networking.hostName = mkDefault "";
nixos/modules/virtualisation/google-compute-image.nix+1−1
@@ -111,7 +111,7 @@ in
111 # Allow root logins only using the SSH key that the user specified
111 # Allow root logins only using the SSH key that the user specified
112 # at instance creation time.
112 # at instance creation time.
113 services.openssh.enable = true;
113 services.openssh.enable = true;
114− services.openssh.permitRootLogin = "without-password";
114+ services.openssh.permitRootLogin = "prohibit-password";
115 services.openssh.passwordAuthentication = mkDefault false;
115 services.openssh.passwordAuthentication = mkDefault false;
116
116
117 # Force getting the hostname from Google Compute.
117 # Force getting the hostname from Google Compute.
nixos/modules/virtualisation/nova-image.nix+1−1
@@ -31,7 +31,7 @@ with lib;
31
31
32 # Allow root logins
32 # Allow root logins
33 services.openssh.enable = true;
33 services.openssh.enable = true;
34− services.openssh.permitRootLogin = "without-password";
34+ services.openssh.permitRootLogin = "prohibit-password";
35
35
36 # Put /tmp and /var on /ephemeral0, which has a lot more space.
36 # Put /tmp and /var on /ephemeral0, which has a lot more space.
37 # Unfortunately we can't do this with the `fileSystems' option
37 # Unfortunately we can't do this with the `fileSystems' option