Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nprussell/b7c9cbac14b2ef09cc8365490e084464 to your computer and use it in GitHub Desktop.
Save nprussell/b7c9cbac14b2ef09cc8365490e084464 to your computer and use it in GitHub Desktop.
Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
Match Group 816ftp
Chroot Directory %h
ForceCommand internal-sftp
AllowTcpForwarding no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment