Added -K0 0 to dropbear config for void VPS installer

This commit is contained in:
Dionysus 2024-02-13 14:50:47 -05:00
parent 0546f65481
commit 0d082be8f0
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
2 changed files with 2 additions and 2 deletions

0
incus Normal file
View File

4
vps
View File

@ -38,7 +38,7 @@ setup_chroot() {
xbps-install -u xbps
xbps-install -Su
xbps-remove base-system openssh
xbps-install curl dropbear git nano net-tools tmux socklog-void wget
xbps-install curl dropbear git iptables nano net-tools tmux socklog-void wget
IP_ADDR=$(ip addr show eth0 | grep 'inet ' | awk '{print $2}' | cut -d'/' -f1)
GATEWAY=$(ip route show default | awk '/default/ {print $3}')
@ -47,7 +47,7 @@ setup_chroot() {
>/var/log/lastlog && chattr +i /var/log/lastlog
printf '#!/bin/sh\nexec 2>&1\n[ -r conf ] && . ./conf\nexec dropbear -p '"$SSH_PORT"' -R -m -w -t -T 1 -F 2>&1\n' > /etc/sv/dropbear/run
printf '#!/bin/sh\nexec 2>&1\n[ -r conf ] && . ./conf\nexec dropbear -K 0 -p '"$SSH_PORT"' -R -m -w -t -T 1 -F 2>&1\n' > /etc/sv/dropbear/run
printf "\nexport HISTFILE=/dev/null\nexport LESSHISTFILE=/dev/null\nexport PYTHONHISTFILE=/dev/null\n" >> /etc/profile
printf "set boldtext\nset minibar\nset nohelp\nset nowrap\nset quickblank\nset tabsize 4\nunbind ^J main\nset selectedcolor black,red\ninclude \"/usr/share/nano/*.nanorc\"\n" > /etc/nanorc
echo "hsts=0" >> /etc/wgetrc