Rechercher une page de manuel
Config::Model::OpenSsh.3pm
Langue: en
Version: 2010-02-08 (ubuntu - 24/10/10)
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)LICENSE
Copyright (c) 2008-2010 Dominique Dumont. This file is part of Config-Model-OpenSsh. Config-Model-OpenSsh is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. Config-Xorg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser Public License for more details. You should have received a copy of the GNU Lesser Public License along with Config-Model; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
SEE ALSO
config-edit-sshd, config-edit-ssh, Config::Model,Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre