diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-05 21:13:05 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-05 21:13:08 +0100 |
commit | a268c8e6ae7ea17c6178c1e7b857e4dc477d5e30 (patch) | |
tree | 55457a34fb4b7ba0e151ae83f6009d55b40a64d8 /debian | |
parent | 0fcc88b20dd3e121faf740d9c7a879e661ddc16c (diff) | |
download | vyatta-cfg-system-a268c8e6ae7ea17c6178c1e7b857e4dc477d5e30.tar.gz vyatta-cfg-system-a268c8e6ae7ea17c6178c1e7b857e4dc477d5e30.zip |
ssh: T631: remove sshd config mangling
The configuration of SSHd is rendered from a template each time the service
changes. Thus it is not required that the boot process touches the config.
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 708251b3..352dcd98 100755 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -52,18 +52,6 @@ if [ "$sysconfdir" != "/etc" ]; then touch /etc/sudoers cp -p /etc/sudoers /etc/sudoers.bak - # enable ssh banner - sed -i 's/^#Banner/Banner/' /etc/ssh/sshd_config - # make sure PermitRoot is off - sed -i '/^PermitRootLogin/s/yes/no/' /etc/ssh/sshd_config - # make sure PasswordAuthentication is on - sed -i 's/^#PasswordAuthentication/PasswordAuthentication/' /etc/ssh/sshd_config - sed -i '/^PasswordAuthentication/s/no/yes/' /etc/ssh/sshd_config - - # add UseDNS line - sed -i '/^UseDNS/d' /etc/ssh/sshd_config - echo 'UseDNS yes' >>/etc/ssh/sshd_config - # cleanup any old entries in /etc/sudoers from previous versions sed -i /etc/sudoers \ -e '/### BEGIN VYATTA/,/### END VYATTA/d' \ |