Add SSH banner

This commit is contained in:
Ivan Bushchik 2023-08-09 15:11:50 +03:00
parent c2535f5754
commit bc026ea567
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
2 changed files with 7 additions and 2 deletions

View file

@ -4,6 +4,13 @@
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
banner = ''
Authorized access only!
If you are not authorized to access or use this system, disconnect now!
'';
};
programs.mosh.enable = true;
}

View file

@ -7,8 +7,6 @@
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "vetus";
time.timeZone = "Europe/Moscow";
system.stateVersion = "23.05";
}