infrastructure/hosts/seedbox/rene/sftp_jail.nix

11 lines
196 B
Nix
Raw Normal View History

2024-06-08 09:34:13 +00:00
{
services.openssh.extraConfig = ''
Match Group sftponly
ChrootDirectory /sftp_jail
ForceCommand internal-sftp
AllowTcpForwarding no
'';
users.groups.sftponly = {};
}