change the vps ssh port

This commit is contained in:
Rouven Seifert 2023-05-30 22:44:35 +02:00
parent 45fc55aaa0
commit 9530f26505
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 3 additions and 0 deletions

View file

@ -49,6 +49,8 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh = { services.openssh = {
enable = true; enable = true;
# clean up the logs a bit
ports = [ 2222 ];
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
users.users.root.openssh.authorizedKeys.keyFiles = [ users.users.root.openssh.authorizedKeys.keyFiles = [

View file

@ -17,6 +17,7 @@ in
}; };
"rfive.de" = { "rfive.de" = {
user = "root"; user = "root";
port = 2222;
}; };
"kaki" = { "kaki" = {
hostname = "kaki.ifsr.de"; hostname = "kaki.ifsr.de";