summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-08-13 11:23:40 +0200
committerJon Clausen <jac@nordu.net>2018-08-13 11:23:40 +0200
commitea6ba16ff3a04c6d425f3aa7a4b428c0eead8cef (patch)
treed84084181ae039222ec2a8448c83d54cff5d062e
parentb1d6aaf13cd27932eacd66696b3639ac140a532e (diff)
make sshd listen on primary ip only
-rw-r--r--ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks1
1 files changed, 1 insertions, 0 deletions
diff --git a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks
index 1a39e13..40bc9bf 100644
--- a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks
+++ b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks
@@ -60,6 +60,7 @@ kexec-tools
# %post
# disallow root login via ssh:
/bin/sed -i '' -e 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
+/bin/sed -i '' -e 's/#ListenAddress 0.0.0.0/ListenAddress PRIIP/' /etc/ssh/sshd_config
# try to get access to the screen:
exec < /dev/tty6 > /dev/tty6
chvt 6