config-edit-sshd1p
Edit data of /etc/ssh/sshd_config
Usage
config-edit-sshd [options]
[commands ...]
config-edit-sshd -ui
curses
[options]
[commands ...]
config-edit-sshd -ui
shell
[options]
[commands ...]
config-edit-sshd -ui
none
[options]
commands ...
config-edit-sshd -ui
none
AllowUsers=foo,bar,baz
cat /etc/ssh/sshd_config
Overview
This program will edit the configuration data contained in /etc/ssh/sshd_config.
You can specify commands as arguments that will be run on the configuration root before launching the UI. These command follow the syntax defined in Config::Model::Loader.
Options
-
-ui -
Specify the user interface type.
- •
-
"tk": provides a Tk graphical interface (If Config::Model::TkUI is installed).
- •
-
"curses": provides a curses user interface (If Config::Model::CursesUI is installed).
- •
-
"shell": provides a shell like interface. See Config::Model::TermUI for details.
- •
-
"none": No UI provided. Only command line arguments are handled.
-
-root_dir -
Specify a root directory to read or write the configuration files. / by default so /etc/ssh/sshd_config is used.
-
-verbose -
Be (very) verbose
-
-debug -
Provide debug infos.
-
-trace -
Provides a full stack trace when exiting on error.
-
-force-load -
Load file even if error are found in data. Bad data are discarded
-
-backend -
Read/Write backend to use. Currently 2 backends are possible:
- •
-
"custom"backend. Supported, but this backend will discard all comments in sshd_config
- •
-
"augeas": Will keep comments. Requires Config::Model::Backend::Augeas.
Caveats
Original structure and comments of /etc/sshd/config are lost during edition if Config::Model::Backend::Augeas and its dependencies are not installed.
Support
For support, please check the following ressources:
- •
-
The config-model wiki: <http://config-model.wiki.sourceforge.net/>
- •
-
The config-model users mailing list: <http://lists.sourceforge.net/mailman/listinfo/config-model-users>