Refactor sshd config

This commit is contained in:
Agatha Lovelace 2023-12-17 21:06:27 +01:00
parent 8ece8f92e6
commit ace8da10b4
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
4 changed files with 9 additions and 27 deletions

View File

@ -51,6 +51,15 @@
xclip
];
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
banner = ''
Hello mistress ^,,^
'';
settings.PasswordAuthentication = false;
};
# 🥺
# security.please.enable = true;

View File

@ -59,15 +59,6 @@
interface = "ens20";
};
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
banner = ''
Hello mistress ^,,^
'';
settings.PasswordAuthentication = false;
};
# Open ports in the firewall.
networking.firewall = {
allowedTCPPorts = [ 20 21 22 80 443 990 ];

View File

@ -21,15 +21,6 @@
# Enable networking
networking.networkmanager.enable = true;
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
banner = ''
Hello mistress ^,,^
'';
settings.PasswordAuthentication = false;
};
virtualisation = {
podman = {
enable = true;

View File

@ -21,15 +21,6 @@
# Enable networking
networking.networkmanager.enable = true;
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
banner = ''
Hello mistress ^,,^
'';
settings.PasswordAuthentication = false;
};
virtualisation = {
podman = {
enable = true;