aboutsummaryrefslogtreecommitdiff
path: root/sshd_config
diff options
context:
space:
mode:
Diffstat (limited to 'sshd_config')
-rw-r--r--sshd_config25
1 files changed, 25 insertions, 0 deletions
diff --git a/sshd_config b/sshd_config
new file mode 100644
index 0000000..a6bf121
--- /dev/null
+++ b/sshd_config
@@ -0,0 +1,25 @@
+Match user new
+ AuthorizedKeysCommand /opt/autopeer/authorized_keys.sh %u %t %k
+ AuthorizedKeysCommandUser root
+ AuthenticationMethods publickey
+ AllowAgentForwarding no
+ AllowStreamLocalForwarding no
+ AllowTcpForwarding no
+ ExposeAuthInfo yes
+ PermitOpen none
+ PermitTunnel no
+ PermitUserRC no
+ ForceCommand /opt/autopeer/new_user_created.sh
+
+Match group autopeer
+ AuthorizedKeysCommand /opt/autopeer/authorized_keys.sh %u %t %k
+ AuthorizedKeysCommandUser root
+ AuthenticationMethods publickey
+ AllowAgentForwarding no
+ AllowStreamLocalForwarding no
+ AllowTcpForwarding no
+ ExposeAuthInfo yes
+ PermitOpen none
+ PermitTunnel no
+ PermitUserRC no
+ ForceCommand /opt/autopeer/autopeer_shell.py