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

Spaces in ssh format keys' comments are valid #1

Closed
arekinath opened this issue Oct 13, 2015 · 0 comments
Closed

Spaces in ssh format keys' comments are valid #1

arekinath opened this issue Oct 13, 2015 · 0 comments

Comments

@arekinath
Copy link
Contributor

Currently parsing a key like

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7KW85uqCvSqHySHGKoPCWYoO7wcSLFxB9ykB4cRe+AJgodkxDcOAJJp9Bg3q4n+BynbxUgk76j97DquHhZYVE3JJqMicgoldGQg+9D8IyT0nKvO6mcS0pLW3yrl3rj2T2fjVSRID6cSrNz+/fY5tdMdjm/koBsON+AoEFiwCqGTWvdHkPsP8zla2NGeXU0sUFqZPVdianX311SMQyq02j4FP1s0L/g5vYD7MkOw1QIvuUJASepLX2mYFCKd2dE9Hdk4AEq9ufWzP47lriWie/8DQg3PbK6PI9qK6pJAz96Iu+9AEn+1mosR3Dmi5I5KQv2xKS9gWKXjoFdwjZSXEN coal sdc key

fails, because there are extra spaces in the key comment part. This is valid and can be produced easily by ssh-keygen.

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

No branches or pull requests

1 participant