Update debian.sh

This commit is contained in:
Xiufeng Guo 2023-05-31 23:05:48 +10:00
parent d03d1aa6cc
commit bd45cadc96
Signed by: showfom
GPG Key ID: 29A7777777777777

View File

@ -131,7 +131,7 @@ function install_packages() {
net-tools dnsutils mtr-tiny traceroute \
wget curl host \
unzip rsync \
bash-completion git whois \
bash-completion git whois rsyslog \
fail2ban iptables haveged gnupg vnstat lrzsz jq \
unattended-upgrades apt-listchanges \
htop iftop p7zip-full
@ -198,6 +198,10 @@ PasswordAuthentication no
EOF
cat > /etc/ssh/sshd_config.d/hide_debian_banner.conf << EOF
DebianBanner no
EOF
cat > /etc/ssh/sshd_config.d/enable_rsa_keys.conf << EOF
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
EOF
fi