mirror of
https://github.com/marcan/takeover.sh
synced 2025-07-15 09:33:08 -07:00
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.
This commit is contained in:
parent
fa36c4929f
commit
e70f3582bd
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue