ssh.config#

$ target-query <path/to/target> -f ssh.config
Details#

Module

apps.ssh.ssh.SSHPlugin

Output

records

Module documentation

No documentation

Function documentation

Parse all fields in the SSH server config in /etc/ssh/sshd_config.

This function parses each line (not starting with ‘#’) as a key-value pair, delimited by whitespace. The values of these fields can be one of three types: string, integer and boolean (string is the default).

We provide two lists that define the integer and boolean fields (SSHD_INTEGER_FIELDS and SSHD_BOOLEAN_FIELDS).

The fields in SSHD_MULTIPLE_DEFINITIONS_ALLOWED_FIELDS can be defined multiple times. We set their type to a list of the underlying value (e.g. varint[] for the Port field).

This parser does not (yet) follow Include directives.

Resources: