commit 99e89e8eb0933b612752fd8f264d010fe587aca0
parent 292af726a22a34e25fcf89363684be8fd77bce9b
Author: pyratebeard <root@pyratebeard.net>
Date: Wed, 3 Jan 2024 16:43:23 +0000
rename USERCA_KEY. don't do motd here. don't shred .ssh dir
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/forge b/forge
@@ -21,7 +21,7 @@ export ARCH="x86"
U_HOME="/usr/${USR}"
DWARF="sudo -u dwarf"
EMAIL="root@pyratebeard.net"
-USERCA_KEY="userca-key-01.pub"
+USERCA_KEY="userca.pub"
HOSTCA_KEY="hostca-key-01"
# ▓▓▒░ functions
@@ -128,10 +128,6 @@ sed -i 's/.*\(PermitRootLogin\).*/\1 prohibit-password/' /etc/ssh/sshd_config
sed -i 's/.*\(PasswordAuthentication\).*/\1 no/' /etc/ssh/sshd_config
## {update,set} allow users
echo "AllowUsers ${USR}" | tee -a /etc/ssh/sshd_config
-## print motd
-sed -i 's/.*\(PrintMotd\).*/\1 yes/' /etc/ssh/sshd_config
-## don't print lastlog
-sed -i 's/.*\(PrintLastLog\).*/\1 no/' /etc/ssh/sshd_config
systemctl reload sshd
@@ -150,7 +146,6 @@ cd $HOME
bw logout
srm -dvrl bw.zip
srm -dvrl .config/Bitwarden\ CLI/ &>/dev/null
-srm -dvrl .ssh
_echo "selfdestruct"
srm -dvrl "$0" &> /dev/null