From 0ac712a995ffd661e3f418a6e8c2df02c11a511d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 18 May 2019 18:30:22 +0000 Subject: [PATCH] change dropbear port to 222 --- post-debootstrap-installer.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index 0d2e993..dd2a2e2 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -26,6 +26,9 @@ mdadm --examine --scan | perl -pe 's/.*\/dev\/md\/?([0-9]+) .*UUID\=(.+?) .*/ARR # concat user keys for cryptsetup unlocking at boot cat /hardware-setup/authorized_keys/* > /etc/dropbear-initramfs/authorized_keys +# set dropbear port to something other than 22, because of openssh +sed -i 's/DROPBEAR_PORT=.*/DROPBEAR_PORT=222/' /etc/default/dropbear + # after cryptsetup, mdadm, ... because of update-initramfs apt-get -y install linux-image-amd64