You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
[...]
ssh_obj.parse()
File "[...]/sshpubkeys/init.py", line 399, in parse
key_parts = self._split_key(keydata)
File "[...]/sshpubkeys/init.py", line 206, in _split_key
self.options = self.parse_options(self.options_raw)
File "[...]/sshpubkeys/init.py", line 267, in parse_options
parse_add_single_option(opt)
File "[...]/sshpubkeys/init.py", line 240, in parse_add_single_option
raise InvalidOptionNameException("%s is not valid option name." % opt_name)
sshpubkeys.exceptions.InvalidOptionNameException: #ssh-rsa is not valid option name.
The text was updated successfully, but these errors were encountered:
Can you clarify when you get this error? #ssh-rsa is indeed not a valid public key line. The library does not handle parsing full authorized_keys files (including empty and commented-out lines) - that you have to either implement and create a new pull request, or handle on your own code.
Hi,
commented lines gives this error:
Traceback (most recent call last):
[...]
ssh_obj.parse()
File "[...]/sshpubkeys/init.py", line 399, in parse
key_parts = self._split_key(keydata)
File "[...]/sshpubkeys/init.py", line 206, in _split_key
self.options = self.parse_options(self.options_raw)
File "[...]/sshpubkeys/init.py", line 267, in parse_options
parse_add_single_option(opt)
File "[...]/sshpubkeys/init.py", line 240, in parse_add_single_option
raise InvalidOptionNameException("%s is not valid option name." % opt_name)
sshpubkeys.exceptions.InvalidOptionNameException: #ssh-rsa is not valid option name.
The text was updated successfully, but these errors were encountered: