Skip to content

Instantly share code, notes, and snippets.

@sundarsrst
Created May 17, 2021 12:12
Show Gist options
  • Save sundarsrst/c1582a7be6b0973c8160e4b05fe81c00 to your computer and use it in GitHub Desktop.
Save sundarsrst/c1582a7be6b0973c8160e4b05fe81c00 to your computer and use it in GitHub Desktop.
Port <your_port_number>
Match User sftp_user
ForceCommand internal-sftp
PasswordAuthentication yes
ChrootDirectory /var/sftp/myfolder
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment