Added example sshd_config for multi-port usage
This commit is contained in:
parent
6eda3c5f50
commit
6a15ce038e
18
assets/sshd_config
Normal file
18
assets/sshd_config
Normal 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
|
Loading…
Reference in New Issue
Block a user