SSH on kernighan
This commit is contained in:
parent
850cbe95d4
commit
21b9cfbfc5
|
@ -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 = [
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
ports = [ 2222 ];
|
||||||
settings.PasswordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue