Skip to content

Instantly share code, notes, and snippets.

@zewebdev1337
Created November 19, 2023 21:17
Show Gist options
  • Save zewebdev1337/2e6b99d4a5db35dee80d70b30d7d373c to your computer and use it in GitHub Desktop.
Save zewebdev1337/2e6b99d4a5db35dee80d70b30d7d373c to your computer and use it in GitHub Desktop.
based sshd_config
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
LoginGraceTime 2m
AuthorizedKeysFile .ssh/authorized_keys
X11Forwarding yes
TCPKeepAlive yes
Subsystem sftp /usr/lib/ssh/sftp-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment