Added -K0 0 to dropbear config for void VPS installer
This commit is contained in:
parent
0546f65481
commit
0d082be8f0
4
vps
4
vps
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue