Parcourir la source

Disable SSH Suffix Broadcast.

Raphael Schneeberger il y a 7 ans
Parent
commit
48d2e48908
2 fichiers modifiés avec 14 ajouts et 4 suppressions
  1. 7 2
      install/hst-install-debian.sh
  2. 7 2
      install/hst-install-ubuntu.sh

+ 7 - 2
install/hst-install-debian.sh

@@ -694,11 +694,16 @@ rm -f /usr/sbin/policy-rc.d
 #                     Configure system                     #
 #----------------------------------------------------------#
 
-# Enable SSH password auth
+# Enable SSH password authentication
 sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
+
+# Disable SSH suffix broadcast
+echo '' >> /etc/ssh/sshd_config
+echo 'DebianBanner no' >> /etc/ssh/sshd_config
+
 service ssh restart
 
-# Disable awstats cron
+# Disable AWStats cron
 rm -f /etc/cron.d/awstats
 
 # Set directory color

+ 7 - 2
install/hst-install-ubuntu.sh

@@ -674,11 +674,16 @@ rm -f /usr/sbin/policy-rc.d
 #                     Configure system                     #
 #----------------------------------------------------------#
 
-# Enabling SSH password auth
+# Enable SSH password authentication
 sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
+
+# Disable SSH suffix broadcast
+echo '' >> /etc/ssh/sshd_config
+echo 'DebianBanner no' >> /etc/ssh/sshd_config
+
 service ssh restart
 
-# Disabling AWStats cron
+# Disable AWStats cron
 rm -f /etc/cron.d/awstats
 
 # Set directory color