Infini-DL360/ssh: add forwarding user

This commit is contained in:
Infinidoge 2024-12-04 12:00:25 -05:00
parent 21d7e61cbf
commit d8cda888d9
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E

View file

@ -22,6 +22,12 @@ in
group = "nogroup";
};
forward = {
description = "User for ssh forwarding";
isSystemUser = true;
group = "nogroup";
};
neofetch = {
description = "SSH Neofetch";
isSystemUser = true;
@ -69,6 +75,15 @@ in
GatewayPorts no
PasswordAuthentication no
Match user forward
AuthorizedKeysFile /etc/ssh/authorized_keys.d/infinidoge /etc/ssh/authorized_keys.d/%u
ForceCommand ${pkgs.shadow}/bin/nologin
PermitTTY no
X11Forwarding no
PermitTunnel yes
GatewayPorts no
PasswordAuthentication no
Match user neofetch
ForceCommand ${pkgs.hyfetch}/bin/neowofetch --config ${neofetchConfig}
PermitTTY yes