Skip to content

Commit

Permalink
Fix OpenSSH warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerg-L authored and Misterio77 committed Nov 12, 2023
1 parent ac10a68 commit 90103a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions minimal/nixos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@
# Feel free to remove if you don't need it.
services.openssh = {
enable = true;
# Forbid root login through SSH.
permitRootLogin = "no";
# Use keys only. Remove if you want to SSH using password (not recommended)
passwordAuthentication = false;
settings = {
# Forbid root login through SSH.
PermitRootLogin = "no";
# Use keys only. Remove if you want to SSH using password (not recommended)
PasswordAuthentication = false;
};
};

# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
Expand Down
10 changes: 6 additions & 4 deletions standard/nixos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@
# Feel free to remove if you don't need it.
services.openssh = {
enable = true;
# Forbid root login through SSH.
permitRootLogin = "no";
# Use keys only. Remove if you want to SSH using password (not recommended)
passwordAuthentication = false;
settings = {
# Forbid root login through SSH.
PermitRootLogin = "no";
# Use keys only. Remove if you want to SSH using password (not recommended)
PasswordAuthentication = false;
};
};

# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
Expand Down

0 comments on commit 90103a9

Please sign in to comment.