I'm trying to figure out how to enable PermitRootLogin with OSX sed.
I know about the OSX sed issue where you have to give an empty string at the start.
I just need the regex I actually need to do:
if #PermitRootLogin yes or #PermitRootLogin no then replace with PermitRootLogin yes
I've got:
sudo sed -i '' 's/#PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config
But this doesn't include if ##PermitRootLogin yes