change ssh port
This commit is contained in:
parent
ddf9d49b66
commit
0005df6c2b
1 changed files with 2 additions and 0 deletions
|
@ -58,5 +58,7 @@
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG6udktq60NydvPg6nnZpwxvQ6scC1HkqTZIG+ORt/HN"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG6udktq60NydvPg6nnZpwxvQ6scC1HkqTZIG+ORt/HN"
|
||||||
];
|
];
|
||||||
services.openssh.settings.PasswordAuthentication = false;
|
services.openssh.settings.PasswordAuthentication = false;
|
||||||
|
services.openssh.ports = [ 9922 ];
|
||||||
|
networking.firewall.allowedTCPPorts = [ 9922 ];
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue