marcan / takeover.sh

Wipe and reinstall a running Linux system via SSH, without rebooting. You know you want to.
Other
7.1k stars 353 forks source link

Start sshd with PermitRootLogin=yes #11

Closed dechamps closed 2 years ago

dechamps commented 2 years ago

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.