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";
|
group = "nogroup";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
forward = {
|
||||||
|
description = "User for ssh forwarding";
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "nogroup";
|
||||||
|
};
|
||||||
|
|
||||||
neofetch = {
|
neofetch = {
|
||||||
description = "SSH Neofetch";
|
description = "SSH Neofetch";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
@ -69,6 +75,15 @@ in
|
||||||
GatewayPorts no
|
GatewayPorts no
|
||||||
PasswordAuthentication 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
|
Match user neofetch
|
||||||
ForceCommand ${pkgs.hyfetch}/bin/neowofetch --config ${neofetchConfig}
|
ForceCommand ${pkgs.hyfetch}/bin/neowofetch --config ${neofetchConfig}
|
||||||
PermitTTY yes
|
PermitTTY yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue