Last active
September 10, 2024 14:50
-
-
Save Max95Cohen/64ddf993e0d6c9e22dcd28e1ef9c7940 to your computer and use it in GitHub Desktop.
VPS sshd_config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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