-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsshd.cf
More file actions
27 lines (24 loc) · 816 Bytes
/
sshd.cf
File metadata and controls
27 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
bundle agent sshd {
vars:
any::
"sshd[PermitRootLogin]" string => "without-password";
freebsd::
"sshd[UsePAM]" string => "no";
"sshd[UseDNS]" string => "no";
files:
any::
"/etc/ssh/sshd_config"
create => "true",
edit_line => set_config_values("sshd.sshd"),
classes => if_repaired("reload_sshd_config");
commands:
!gateway.!tools.reload_sshd_config::
#
# !gateway.!tools:
#
# Don't risk locking yourself out of the gateway nodes.
# Reloading sshd_config config must be done manually there,
# one node after the other.
#
"/usr/sbin/service sshd reload";
}