mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
change the vps ssh port
This commit is contained in:
parent
45fc55aaa0
commit
9530f26505
|
@ -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 = [
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue