Update Setup.sh

This commit is contained in:
Niko Andreopoulos 2025-08-05 00:36:11 -04:00
parent 6ea6be8238
commit eaf3699f58

View file

@ -35,7 +35,6 @@ sed -i 's/^#\?\s*UsePAM\s\+.*/UsePAM no/' /etc/ssh/sshd_config
echo "[6/7] Setting SSH login banner..." echo "[6/7] Setting SSH login banner..."
cat << 'EOF' > /etc/issue.net cat << 'EOF' > /etc/issue.net
\033[1;34m
AUTHORIZED ACCESS ONLY AUTHORIZED ACCESS ONLY
Disconnect immediately if you are not an authorized user. Disconnect immediately if you are not an authorized user.
@ -46,7 +45,6 @@ Disconnect immediately if you are not an authorized user.
| |\ | | (__| <| |_| | | (_) | | | | | (__ _| |_ | | | |____| |___| |____ | |\ | | (__| <| |_| | | (_) | | | | | (__ _| |_ | | | |____| |___| |____
|_| \_|_|\___|_|\_\\__|_| \___/|_| |_|_|\___| |_____| |_| |______|______\_____| |_| \_|_|\___|_|\_\\__|_| \___/|_| |_|_|\___| |_____| |_| |______|______\_____|
\033[0m
EOF EOF
sed -i 's|^#\?\s*Banner\s\+.*|Banner /etc/issue.net|' /etc/ssh/sshd_config sed -i 's|^#\?\s*Banner\s\+.*|Banner /etc/issue.net|' /etc/ssh/sshd_config