Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Improve sshd detection/logic #262

Description

@vpetersson

Currently, simply check sshd_config to determine if a particular configuration line is present. The problem with that is that it isn't bullet proof, as the default values will vary over versions.

A better way of doing this is to instead rely on the -T option in sshd, which will spit out the current version.

For instance, here we can check for root login:

$ sudo sshd -T | grep permitroot
permitrootlogin without-password

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions