Skip to content

SSHKey() does not handle authorized_keys format well #8

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

Closed
jubalfh opened this issue Jul 5, 2015 · 2 comments
Closed

SSHKey() does not handle authorized_keys format well #8

jubalfh opened this issue Jul 5, 2015 · 2 comments

Comments

@jubalfh
Copy link

jubalfh commented Jul 5, 2015

I guess you might not think it a bug at all: SSHKey() throws an exception (Unable to decode the key), when fed with a line that contains authorized_keys data (options followed by key type, key data and comment).

Would you accept a patch/PR with an implementation of such feature?

@ojarva
Copy link
Owner

ojarva commented Apr 12, 2016

@jubalfh sorry about not answering earlier - I completely missed these. I think these should be parsed properly (but currently are not). I would accept PR with an implementation of this.

@ojarva ojarva closed this as completed in e328660 Apr 12, 2016
@ojarva
Copy link
Owner

ojarva commented Apr 12, 2016

I added formatting and some tests for this. The implementation is a bit hack-ish, so feel free to improve it.

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

2 participants