Skip to content

Commit

Permalink
Add ssh.sftponly pillar with ssh_config and group data
Browse files Browse the repository at this point in the history
  • Loading branch information
niku64 committed Sep 5, 2022
1 parent 0b3b964 commit b8ba6fc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pillar/ssh/sftponly.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ssh:
sshd_config:
extra:
Match group sftponly:
ChrootDirectory: "/home/%u"
X11Forwarding: "no"
AllowTcpForwarding: "no"
ForceCommand: internal-sftp

groups:
present:
sftponly: {}

0 comments on commit b8ba6fc

Please sign in to comment.