The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

config-edit-sshd - Edit data of /etc/ssh/sshd_config

SYNOPSIS

  # most users will want to run
  config-edit-sshd [options] [ commands  ... ]

  # if you don't have a X server
  config-edit-sshd -ui curses [options] [ commands  ... ]

  # if you don't like curses
  config-edit-sshd -ui shell [options] [ commands  ... ]

  # if you are a sys admin
  config-edit-sshd -ui none [options]  commands  ... 

  # example:
  config-edit-sshd -ui none -write_conf_dir /tmp AllowUsers=foo,bar,baz
  cat /tmp/sshd_config

DESCRIPTION

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.

-write_conf_dir

Specify where to write the configuration files. By default /etc/ssh/sshd_config will be written.

-read_conf_dir

Specify where to read the configuration files. /etc/ssh/sshd_config by default.

-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

BUGS

No backup file is written.

Original structure and comments of /etc/sshd/config are lost during edition.

SUPPORT

For support, please check the following ressources:

AUTHOR

Dominique Dumont, ddumont at cpan dot org

SEE ALSO

config-edit, Config::Model::Model