Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HashKnownHosts yes #90

Open
deric opened this issue Nov 15, 2024 · 0 comments
Open

Support HashKnownHosts yes #90

deric opened this issue Nov 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@deric
Copy link

deric commented Nov 15, 2024

Use Case

When hashing known hosts file is enabled in /etc/ssh/sshd_config:

HashKnownHosts yes

the known hosts file is obfuscated, e.g.

|1|/HDlpiXPrlV7Du5z0gYYl2jqFDc=|bM6g+TnsNFpNa4hm1XKGXFDypKg= ecdsa-sha2-nistp256 AAAAE..

The sshkey resource should respect the setting and not mix hashed entries with plain text entries.

The matching lines can be found easily:

ssh-keygen -H -F hostname.example.com

but it's not as easy as managing plain-text records.

@deric deric added the enhancement New feature or request label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant