diff options
| author | 2026-04-08 03:50:25 +0200 | |
|---|---|---|
| committer | 2026-04-08 03:57:04 +0200 | |
| commit | d3ec864c134ebcf05ea82bad7f565a61bb418feb (patch) | |
| tree | 1e88a0a7ff59ed461cbbe3ae9793e6b9cdb7f178 /sshd_config | |
init
Diffstat (limited to 'sshd_config')
| -rw-r--r-- | sshd_config | 25 |
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 |
