From bd45cadc962e0c59cd0137daa08c07c9a85639a9 Mon Sep 17 00:00:00 2001 From: Xiufeng Guo Date: Wed, 31 May 2023 23:05:48 +1000 Subject: [PATCH] Update debian.sh --- debian.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian.sh b/debian.sh index 42c8abc..6c8f43a 100644 --- a/debian.sh +++ b/debian.sh @@ -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