SSH on kernighan

This commit is contained in:
Trevor Vallender 2023-07-07 19:42:18 +01:00
parent 850cbe95d4
commit 21b9cfbfc5
2 changed files with 8 additions and 2 deletions

View File

@ -20,8 +20,13 @@ in
../shared/filesystem.nix ../shared/filesystem.nix
]; ];
networking.hostName = "ritchie"; networking = {
hostName = "ritchie";
firewall = {
enable = true;
allowedTCPPorts = [ 2222 ];
};
};
users.users.foxsoft = { users.users.foxsoft = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [

View File

@ -61,6 +61,7 @@
services.openssh = { services.openssh = {
enable = true; enable = true;
ports = [ 2222 ];
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };