Skip to content

Commit

Permalink
sshd_config: PermitTunnel no
Browse files Browse the repository at this point in the history
Restricted SFTP users don't have to create tunnels
  • Loading branch information
cnotin authored Apr 22, 2020
1 parent 13926b1 commit 01b8025
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
Match Group {{ sftp_group_name }}
ChrootDirectory %h
AllowTCPForwarding no
PermitTunnel no
X11Forwarding no
ForceCommand internal-sftp {{ sftp_enable_logging | ternary('-l VERBOSE', '') }} {{ (sftp_start_directory in sftp_directories) | ternary('-d /' + sftp_start_directory, '') }}
PasswordAuthentication {{ sftp_allow_passwords | ternary('yes', 'no') }}
Expand Down

0 comments on commit 01b8025

Please sign in to comment.