Skip to main content

sshd.config

Description

SSH server configuration

Init

sshd.config(path string)

Fields

IDTYPEDESCRIPTION
filefileFile of this SSH server configuration
files[]fileA list of lexically sorted files making up the SSH server configuration
contentstringDeprecated: Please use file.content or files{content} instead. This field will be removed in v12.
paramsmap[string]stringConfiguration values of this SSH server
blocks[]sshd.config.matchBlockBlocks with match conditions in this SSH server config
ciphers[]stringCiphers configured for this SSH server
macs[]stringMACs configured for this SSH server
kexs[]stringKey exchange algorithms configured for this SSH server
hostkeys[]stringHost keys configured for this SSH server
permitRootLogin[]stringPermitRootLogin setting in SSH server

Examples

Check that the SSH banner is sourced from /etc/ssh/sshd-banner

sshd.config.params['Banner'] == '/etc/ssh/sshd-banner'