Add variables for sshd_allow_tcp_forwarding and sshd_max_sessions
This commit is contained in:
parent
d106b79122
commit
ede9ac4478
|
@ -3,3 +3,6 @@ sshd_become: true
|
|||
sshd_become_user: root
|
||||
|
||||
sshd_port: 22
|
||||
|
||||
sshd_allow_tcp_forwarding: "no"
|
||||
sshd_max_sessions: 2
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue