I am implementing a basic deploy script and for sshd_config the only change that I need to make is PermitRootLogin yes to PermitRootLogin without-password. I have read through the docs and they make no mention of this but that is not to say it is impossible.
Can I specify a second PermitRootLogin? I.e. echo 'PermitRootLogin without-password' >> /etc/ssh/sshd_config
If so, is this safe?
Updates based on comments:
1) I am aware that I could parse the file and change the variable. My question still remains though.
sed
, or for more complexity,augeas
.