diff options
author | Jon Clausen <jac@nordu.net> | 2018-08-13 11:23:40 +0200 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-08-13 11:23:40 +0200 |
commit | ea6ba16ff3a04c6d425f3aa7a4b428c0eead8cef (patch) | |
tree | d84084181ae039222ec2a8448c83d54cff5d062e | |
parent | b1d6aaf13cd27932eacd66696b3639ac140a532e (diff) |
make sshd listen on primary ip only
-rw-r--r-- | ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks | 1 |
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 |