Infini-DL360: add ssh jump user

This commit is contained in:
Infinidoge 2024-07-18 18:20:56 -04:00
parent feac7d06b2
commit 9cbc3af51a
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E

View file

@ -123,6 +123,12 @@
};
users.groups.incoming = { };
users.users.jump = {
description = "User for ssh jumping";
isSystemUser = true;
group = "nogroup";
};
systemd.tmpfiles.settings."30-external" = {
"/srv/external".d = { user = "root"; group = "root"; };
"/srv/external/incoming".d = { user = "incoming"; group = "incoming"; mode = "0770"; };
@ -139,5 +145,14 @@
AllowTcpForwarding no
KbdInteractiveAuthentication no
PasswordAuthentication no
Match user jump
AuthorizedKeysFile /etc/ssh/authorized_keys.d/infinidoge /etc/ssh/authorized_keys.d/%u
ForceCommand ${pkgs.shadow}/bin/nologin
PermitTTY no
X11Forwarding no
PermitTunnel no
GatewayPorts no
PasswordAuthentication no
'';
}