Skip to content

Commit 48d2e48

Browse files
committed
Disable SSH Suffix Broadcast.
1 parent dae9da8 commit 48d2e48

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

install/hst-install-debian.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,11 +694,16 @@ rm -f /usr/sbin/policy-rc.d
694694
# Configure system #
695695
#----------------------------------------------------------#
696696

697-
# Enable SSH password auth
697+
# Enable SSH password authentication
698698
sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
699+
700+
# Disable SSH suffix broadcast
701+
echo '' >> /etc/ssh/sshd_config
702+
echo 'DebianBanner no' >> /etc/ssh/sshd_config
703+
699704
service ssh restart
700705

701-
# Disable awstats cron
706+
# Disable AWStats cron
702707
rm -f /etc/cron.d/awstats
703708

704709
# Set directory color

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,11 +674,16 @@ rm -f /usr/sbin/policy-rc.d
674674
# Configure system #
675675
#----------------------------------------------------------#
676676

677-
# Enabling SSH password auth
677+
# Enable SSH password authentication
678678
sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
679+
680+
# Disable SSH suffix broadcast
681+
echo '' >> /etc/ssh/sshd_config
682+
echo 'DebianBanner no' >> /etc/ssh/sshd_config
683+
679684
service ssh restart
680685

681-
# Disabling AWStats cron
686+
# Disable AWStats cron
682687
rm -f /etc/cron.d/awstats
683688

684689
# Set directory color

0 commit comments

Comments
 (0)