Skip to content

Commit

Permalink
Start sshd with PermitRootLogin=yes.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dechamps authored and marcan committed Jul 27, 2021
1 parent fa36c49 commit cc84e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion takeover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cc84e94

Please sign in to comment.