From 82ea5984284c8aa3a38816ca64e83a4f55138172 Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Wed, 24 Nov 2021 17:16:32 +0100 Subject: [PATCH] no security --- setup.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/setup.sh b/setup.sh index fbe8edb..790d5bb 100644 --- a/setup.sh +++ b/setup.sh @@ -4,17 +4,3 @@ curl -fOL https://github.com/cdr/code-server/releases/download/v3.12.0/code-serv dpkg -i code-server_3.12.0_amd64.deb systemctl enable --now code-server@kk - -printf "[sshd]\nenabled = true\nbanaction = iptables-multiport" > /etc/fail2ban/jail.local -systemctl enable fail2ban -ufw allow OpenSSH -ufw enable -sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin no/' /etc/ssh/sshd_config -sed -i -e '/^PasswordAuthentication/s/^.*$/PasswordAuthentication no/' /etc/ssh/sshd_config -sed -i -e '/^X11Forwarding/s/^.*$/X11Forwarding no/' /etc/ssh/sshd_config -sed -i -e '/^#MaxAuthTries/s/^.*$/MaxAuthTries 20/' /etc/ssh/sshd_config -sed -i -e '/^#AllowTcpForwarding/s/^.*$/AllowTcpForwarding no/' /etc/ssh/sshd_config -sed -i -e '/^#AllowAgentForwarding/s/^.*$/AllowAgentForwarding no/' /etc/ssh/sshd_config -sed -i -e '/^#AuthorizedKeysFile/s/^.*$/AuthorizedKeysFile .ssh\/authorized_keys/' /etc/ssh/sshd_config -sed -i '$a AllowUsers kk' /etc/ssh/sshd_config -