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

Ignore public keys that are not in ssh format #219

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

jandubois
Copy link
Member

It seems that some ~/.ssh/*.pub files are public SSL keys, so add some minimal validation before using them as authorized_keys.

Ref #104 (comment)

@jandubois jandubois added the bug Something isn't working label Sep 7, 2021
@jandubois jandubois added this to the v0.6.4 milestone Sep 7, 2021
jandubois added a commit to lima-vm/alpine-lima that referenced this pull request Sep 8, 2021
lima-vm/lima#219 adds quotes around the keys, which
must be stripped before the keys get written to ~/.ssh/authorized_keys.

Signed-off-by: Jan Dubois <[email protected]>
It seems that some ~/.ssh/*.pub files are public SSL keys, so add
some minimal validation before using them as authorized_keys.

Signed-off-by: Jan Dubois <[email protected]>
@AkihiroSuda AkihiroSuda merged commit b06e4cb into lima-vm:master Sep 8, 2021
@jandubois jandubois deleted the pubkey-format branch September 8, 2021 06:42
@asdfghjkl403622
Copy link

still getting this issue

@jandubois
Copy link
Member Author

@asdfghjkl403622 We would need to see the log files to check this further, but I wonder if this isn't related to your all-numeric username, so maybe test again once #243 has been merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants