2023-10-21 17:55:11 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-05-26 08:52:46 +01:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
2023-10-21 17:55:11 +01:00
|
|
|
ports = [ 22 ];
|
2023-05-26 08:52:46 +01:00
|
|
|
settings = {
|
|
|
|
UseDns = true;
|
2023-10-22 06:52:38 +01:00
|
|
|
PermitRootLogin = "without-password";
|
2023-05-26 08:52:46 +01:00
|
|
|
PasswordAuthentication = false;
|
|
|
|
GatewayPorts = "yes";
|
|
|
|
LogLevel = "VERBOSE";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|