Rechercher une page de manuel
Config::Model::OpenSsh.3pm
Langue: en
Version: 2009-06-01 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
Config::Model::OpenSsh - OpenSsh configuration files editorSYNOPSIS
# Config::Model::OpenSsh is a plugin for Config::Model. You can use # 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 OpenSsh. Then Config::Model provides a graphical editor program for /etc/ssh/sshd_config and /etc/ssh/ssh_config. See config-edit-sshd and config-edit-ssh for more help.This module and Config::Model can also be used to modify safely the content for /etc/ssh/sshd_config, /etc/ssh/ssh_config or ~/.ssh/config from Perl programs.
Once this module is installed, you can run (as root, but please backup /etc/X11/xorg.conf before):
# config-edit-sshd
Or to edit /etc/ssh/ssh_config configuration files:
# config-edit-ssh
To edit ~/.ssh/config, run as a normal user:
# config-edit-ssh
The Perl API is documented in Config::Model and mostly in Config::Model::Node.
Functions
These functions are declared in OpenSsh configuration models and are called back.sshd_read (object => <sshd_root>, conf_dir => ...)
Read sshd_config in "conf_dir" and load the data in the "sshd_root" configuration tree.sshd_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)SEE ALSO
config-edit-sshd, Config::Model,Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre