diff options
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-x | scripts/rl-system.init | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init index fc328b7b..b73befba 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -179,10 +179,13 @@ security_reset () { # Disable root login over telnet sed -i -e '/^# Pseudo-terminal (telnet)/,$d' /etc/securetty - # Disable root login with ssh - # Renable DNS validation + # Restore default sshd config + # Disable root login with ssh + # Renable DNS validation + # Remove Listen addresses sed -i -e '/^PermitRootLogin/s/yes/no/' \ - -e '/^UseDNS/s/no/yes/' /etc/ssh/sshd_config + -e '/^UseDNS/s/no/yes/' \ + -e '/^ListenAddress/d' /etc/ssh/sshd_config } start () { |