summaryrefslogtreecommitdiff
path: root/scripts/rl-system.init
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-16 15:40:20 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-16 15:40:20 -0800
commit184cb6cb1431acfeec02caadf51fce246141e3cb (patch)
treea663b93832a811ba77f65490a7db9c1baa25f10e /scripts/rl-system.init
parent8960375b2a9f11d413152b67f81ca765b157c711 (diff)
downloadvyatta-cfg-system-184cb6cb1431acfeec02caadf51fce246141e3cb.tar.gz
vyatta-cfg-system-184cb6cb1431acfeec02caadf51fce246141e3cb.zip
Add ability to configure SSH listen address
Bug 2410 Add ability to add configure listen address in ssh_config. set service ssh listen-address 1.2.4.40 Multiple values are allowed, and works for both IPv4 and IPv6
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-xscripts/rl-system.init9
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 () {