Added example sshd_config for multi-port usage

This commit is contained in:
Dionysus 2023-06-27 21:00:24 -04:00
parent 6eda3c5f50
commit 6a15ce038e
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 18 additions and 0 deletions

18
assets/sshd_config Normal file
View File

@ -0,0 +1,18 @@
AuthenticationMethods publickey
AuthorizedKeysFile /etc/ssh/authorized_keys/%u
Banner /etc/issue
ChallengeResponseAuthentication no
ClientAliveInterval 0
DisableForwarding yes
PasswordAuthentication no
PermitRootLogin no
Port CHANGEME
Port 22
PrintLastLog no
Protocol 2
Match LocalPort 22
AllowUsers git
Match LocalPort CHANGEME
AllowUsers acidvegas