CDIST-TYPE__SSHD_CONFIG(7) | cdist | CDIST-TYPE__SSHD_CONFIG(7) |
cdist-type__sshd_config - Manage options in sshd_config
This space intentionally left blank.
None.
Can be used multiple times. All of the values are ANDed together.
This option is required if --state present. If not specified and --state absent, all values for the given option are removed.
None.
# Disallow root logins with password __sshd_config PermitRootLogin --value without-password # Disallow password-based authentication __sshd_config PasswordAuthentication --value no # Accept the EDITOR environment variable __sshd_config AcceptEnv:EDITOR --option AcceptEnv --value EDITOR # Force command for connections as git user __sshd_config git@ForceCommand --match 'User git' --option ForceCommand \
--value 'cd ~git && exec git-shell ${SSH_ORIGINAL_COMMAND:+-c "${SSH_ORIGINAL_COMMAND}"}'
The explorer will incorrectly report absent if OpenSSH internally transforms one value to another (e.g. permitrootlogin prohibit-password is transformed to permitrootlogin without-password). Workaround: Use the value that OpenSSH uses internally.
Dennis Camera <dennis.camera--@--ssrq-sds-fds.ch>
Copyright (C) 2020 Dennis Camera. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
ungleich GmbH 2021
January 15, 2023 | 7.0.0 |