mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
change the vps ssh port
This commit is contained in:
parent
45fc55aaa0
commit
9530f26505
2 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,8 @@
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
# clean up the logs a bit
|
||||
ports = [ 2222 ];
|
||||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
users.users.root.openssh.authorizedKeys.keyFiles = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue