NAME
Config::Model::Sshd - Sshd configuration editor and model
SYNOPSIS
# Config::Model::Sshd is a plugin for Config::Model. You can
# Config::Model API to modify its content
use Config::Model ;
my $model = Config::Model -> new ( ) ;
my $inst = $model->instance (root_class_name => 'Sshd',
instance_name => 'my_instance',
);
my $root = $inst -> config_root ;
$root->load("AllowUsers=foo,bar") ;
$inst->write_back() ;
DESCRIPTION
This module provides a configuration model for Sshd. Then Config::Model provides a graphical editor program for /etc/ssh/sshd_config. See config-edit-sshd for more help.
This module and Config::Model can also be used to modify safely the content for /etc/ssh/sshd_config from Perl perl.
Once this module is installed, you can run (as root, but please backup /etc/X11/xorg.conf before):
Functions
These functions are declared in Sshd configuration model and are called back.
read (object => <sshd_root>, conf_dir => ...)
Read sshd_config in conf_dir
and load the data in the sshd_root
configuration tree.
write (object => <sshd_root>, conf_dir => ...)
Write sshd_config in conf_dir
from the data stored the sshd_root
configuration tree.
AUTHOR
Dominique Dumont, (ddumont at cpan dot org)