Hi Vlad,
PasswordAuthentication is editable from web UI too.
To save PasswordAuthentication and several other params, Nethserver uses the config database. No custom template is needed in this case.
[root@testserver ~]# config show sshd
sshd=service
LoginGraceTime=2m
MaxAuthTries=6
PasswordAuthentication=yes
PermitRootLogin=yes
Protocol=2
TCPPort=22
UsePAM=yes
access=green,red
status=enabled
To change PasswordAuthentication to no:
config setprop sshd PasswordAuthenication no
To apply the changes:
signal-event nethserver-openssh-update
I saw you are using version 7.5, I recommend to update, next week Nethserver 7.7 will be available in the Software Center.