From 6a15ce038e7dbe11246cb35b46f19bc42ee33204 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Tue, 27 Jun 2023 21:00:24 -0400 Subject: [PATCH] Added example sshd_config for multi-port usage --- assets/sshd_config | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 assets/sshd_config diff --git a/assets/sshd_config b/assets/sshd_config new file mode 100644 index 0000000..24dd67f --- /dev/null +++ b/assets/sshd_config @@ -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 \ No newline at end of file