Find all files (-type f) and execute the command (sed -i 's/#PermitRootLogin yes/PermitRootLogin no/g') on each of them ( {} \; ) in the root directory (find /).
find / -type f -exec sed -i 's/#PermitRootLogin yes/PermitRootLogin no/g' {} \;