Skip to content

Commit

Permalink
Add root login workaround for jessie.
Browse files Browse the repository at this point in the history
The default value of openssh-server of PermitRootLogin has changed in
jessie, which made users trying to install jessie unable to login to
their system. This workaround restores the old situation and thereby
fixes #45.

Proper solution is adding support for key-based authentication.
  • Loading branch information
diederikdehaas committed May 18, 2014
1 parent 2387d8d commit 8587720
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/etc/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,14 @@ else
cp /etc/resolv.conf /rootfs/etc/ || fail
fi
echo "OK"

# openssh-server in jessie doesn't allow root to login using password anymore
# this hack does allow it (until a proper solution is implemented)
if [ "$release" = "jessie" ] ; then
echo -n " Allowing root to login with password... "
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /rootfs/etc/ssh/sshd_config || fail
echo "OK"
fi
echo ""

# there is no hw clock on rpi
Expand Down

0 comments on commit 8587720

Please sign in to comment.