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

Improve sshd detection/logic #262

Open
vpetersson opened this issue Feb 14, 2020 · 3 comments
Open

Improve sshd detection/logic #262

vpetersson opened this issue Feb 14, 2020 · 3 comments
Labels
story-points-unknown Unknown Story Points

Comments

@vpetersson
Copy link
Contributor

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
@vpetersson vpetersson added the story-points-unknown Unknown Story Points label Mar 9, 2020
@vpetersson
Copy link
Contributor Author

@a-martynovich this is done, right?

@a-martynovich
Copy link
Contributor

@vpetersson i think we came to an agreement that this is unreliable

@vpetersson
Copy link
Contributor Author

Sorry, yes, you're right. At least for the time being given older distros.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
story-points-unknown Unknown Story Points
Projects
None yet
Development

No branches or pull requests

2 participants