mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
ssh port
This commit is contained in:
parent
5b32bc5a2e
commit
5d29591002
1 changed files with 6 additions and 3 deletions
|
|
@ -3,8 +3,9 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
with lib; {
|
publicPort = 62954;
|
||||||
|
in with lib; {
|
||||||
/*
|
/*
|
||||||
security.pam.services.sshd.text = mkDefault (mkAfter ''
|
security.pam.services.sshd.text = mkDefault (mkAfter ''
|
||||||
session required pam_exec.so ${katnotify}/bin/notify
|
session required pam_exec.so ${katnotify}/bin/notify
|
||||||
|
|
@ -13,7 +14,8 @@ with lib; {
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ports = lib.mkDefault [62954];
|
ports = lib.mkDefault [publicPort 22];
|
||||||
|
openFirewall = false;
|
||||||
settings = {
|
settings = {
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
|
|
@ -24,6 +26,7 @@ with lib; {
|
||||||
LogLevel = "VERBOSE";
|
LogLevel = "VERBOSE";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [publicPort];
|
||||||
|
|
||||||
programs.mosh.enable = true;
|
programs.mosh.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue