sshd.config
Description
SSH server configuration
Init
sshd.config(path string)
Fields
ID | TYPE | DESCRIPTION |
---|---|---|
file | file | File of this SSH server configuration |
files | []file | A list of lexically sorted files making up the SSH server configuration |
content | string | Deprecated: Please use file.content or files{content} instead. This field will be removed in v12. |
params | map[string]string | Configuration values of this SSH server |
blocks | []sshd.config.matchBlock | Blocks with match conditions in this SSH server config |
ciphers | []string | Ciphers configured for this SSH server |
macs | []string | MACs configured for this SSH server |
kexs | []string | Key exchange algorithms configured for this SSH server |
hostkeys | []string | Host keys configured for this SSH server |
permitRootLogin | []string | PermitRootLogin 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'