Skip to content

Instantly share code, notes, and snippets.

@claudep
Last active December 27, 2015 14:29
Show Gist options
  • Select an option

  • Save claudep/7340719 to your computer and use it in GitHub Desktop.

Select an option

Save claudep/7340719 to your computer and use it in GitHub Desktop.
/etc/ssh/sshd_config:
file.replace:
- pattern: Subsystem sftp /usr/lib/openssh/sftp-server
- repl: |
Subsystem sftp internal-sftp
Match Group sftponly
ChrootDirectory /home/sftpusers/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
- show_changes: True
- watch_in:
- service: ssh
ScannerError: while scanning a simple key
in "<unicode string>", line 8, column 7:
Subsystem sftp internal-sftp
^
could not found expected ':'
in "<unicode string>", line 9, column 7:
Match Group sftponly
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment