Skip to content

Instantly share code, notes, and snippets.

@khageshsaini
Created June 21, 2018 15:03
Show Gist options
  • Save khageshsaini/bbe63e7a6690bc6e9f80ad3f519822f6 to your computer and use it in GitHub Desktop.
Save khageshsaini/bbe63e7a6690bc6e9f80ad3f519822f6 to your computer and use it in GitHub Desktop.
Ensure this in /etc/ssh/sshd_config
# Disable tunneling
PermitTunnel yes
# Disable forwarding tcp connections.
# no real advantage without denied shell access
AllowTcpForwarding yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment