1
0
Fork 0

Add variables for sshd_allow_tcp_forwarding and sshd_max_sessions

This commit is contained in:
Daniele Tricoli 2021-06-01 17:09:27 +02:00
parent d106b79122
commit ede9ac4478
2 changed files with 5 additions and 2 deletions

View File

@ -3,3 +3,6 @@ sshd_become: true
sshd_become_user: root
sshd_port: 22
sshd_allow_tcp_forwarding: "no"
sshd_max_sessions: 2

View File

@ -30,11 +30,11 @@
- regexp: "^#?AllowAgentForwarding"
line: "AllowAgentForwarding no"
- regexp: "^#?AllowTcpForwarding"
line: "AllowTcpForwarding no"
line: "AllowTcpForwarding {{ sshd_allow_tcp_forwarding }}"
- regexp: "^#?MaxAuthTries"
line: "MaxAuthTries 3"
- regexp: "^#?MaxSessions"
line: "MaxSessions 2"
line: "MaxSessions {{ sshd_max_sessions }}"
- regexp: "^#?PasswordAuthentication"
line: "PasswordAuthentication no"
- regexp: "^#?PermitRootLogin"