Different distro's can have slightly different SSH configs so replacing specific strings might not work.
To cover any type of PermitRootLogin string use:
PermitRootLogin
RUN sed -i 's/PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config