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

Only the ssh host key(s) that show up in 'sshd -T' will have the appropriate mode applied to them #150

Open
michael-riddle opened this issue Nov 15, 2022 · 1 comment

Comments

@michael-riddle
Copy link
Member

This is definitely a good way to ensure the host key has the appropriate mode, however, if a particular host key isn't called out in the config, the file's mode will be unchanged. Specifically /etc/ssh/ssh_host_ecdsa_key and ssh_host_ed25519_key by default will exist, but not have the more restrictive mode applied to them.

@michael-riddle
Copy link
Member Author

Adding a tidy parameter to clear out unmanaged keys would probably be the most appropriate solution for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant