SSH prohibits root access with password
This commit is contained in:
parent
e1da21e8fe
commit
98823953f7
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
||||||
{fleetFlake, ...}: {
|
{fleetFlake, ...}: {
|
||||||
services = {
|
services = {
|
||||||
sshd.enable = true;
|
openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
PermitRootLogin = "prohibit-password";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
fail2ban = {
|
fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue