Skip to content

Instantly share code, notes, and snippets.

@Max95Cohen
Last active September 10, 2024 14:50
Show Gist options
  • Save Max95Cohen/64ddf993e0d6c9e22dcd28e1ef9c7940 to your computer and use it in GitHub Desktop.
Save Max95Cohen/64ddf993e0d6c9e22dcd28e1ef9c7940 to your computer and use it in GitHub Desktop.
VPS sshd_config
$ sudo vim /etc/ssh/sshd_config
Port 33022
PasswordAuthentication no
PubkeyAuthentication yes
MaxAuthTries = 3
PermitEmptyPasswords no
PermitRootLogin no
Protocol 2
ClientAliveInterval 180
# AllowUsers [email protected] pest
# DenyUsers james
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment