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

Detect invalid file permissions on existing SSH key pairs #20

Open
thomasjo opened this issue Jun 7, 2021 · 0 comments
Open

Detect invalid file permissions on existing SSH key pairs #20

thomasjo opened this issue Jun 7, 2021 · 0 comments

Comments

@thomasjo
Copy link
Member

thomasjo commented Jun 7, 2021

When a user executes prepare-authentication.sh with a pre-existing key pair, we should detect if the permissions are invalid.
And if the permissions are invalid, we should inform the user in a "friendly" manner and help them fix the permission issue.

An alternative approach would be to fix the permission issue automatically, but I'm a bit reluctant about changing file permissions on existing files; they might be "invalid" for a reason.

For reference, the .ssh folder needs to be 0700 and any file within that folder should be 0600.

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

No branches or pull requests

1 participant