From ea6ba16ff3a04c6d425f3aa7a4b428c0eead8cef Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Mon, 13 Aug 2018 11:23:40 +0200 Subject: make sshd listen on primary ip only --- ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks | 1 + 1 file changed, 1 insertion(+) (limited to 'ks-template/hw/supermicro') 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 -- cgit v1.1