PERL : Libconf::Glueconf::Networking::Sshd_config C/PYTHON/RUBY : Networking/Sshd_config
Libconf::Glueconf::Networking:Sshd_config is a template that handles the sshd_config files from ssh server.
$sshd_config = new Libconf::Glueconf::Networking::Sshd_config({ filename => '/etc/ssh/sshd_config' });
$sshd_config->{Protocol} = '1';
$sshd_config->write_conf();
creates the template
$sshd_config = new Libconf::Glueconf::Networking::Sshd_config({
.. arguments ..
})
the options are the same as in Libconf::Templates::Generic::KeyValue, look there to have the details.
See <Libconf::Glueconf> for general methods