From e70f3582bd1e4735c2ef9c91cba6d13c577f12b9 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Mon, 26 Jul 2021 17:23:13 +0100 Subject: [PATCH] Start sshd with PermitRootLogin=yes. Some distributions, such as Debian, disable root login in sshd by default. This presents a problem when such distributions are used as the temporary system in takeover.sh. This commit explicitly enables root login in the sshd command line, overriding the sshd configuration file. --- takeover.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/takeover.sh b/takeover.sh index 13fc360..c7ac83b 100755 --- a/takeover.sh +++ b/takeover.sh @@ -65,7 +65,7 @@ EOF ./busybox echo "Starting secondary sshd" ./busybox chroot . /usr/bin/ssh-keygen -A -./busybox chroot . /usr/sbin/sshd -p $PORT +./busybox chroot . /usr/sbin/sshd -p $PORT -o PermitRootLogin=yes ./busybox echo "You should SSH into the secondary sshd now." ./busybox echo "Type OK to continue"