Infini-DL360/ssh: add forwarding user
This commit is contained in:
parent
21d7e61cbf
commit
d8cda888d9
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue