[ 
https://issues.apache.org/jira/browse/SSHD-974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070388#comment-17070388
 ] 

Lyor Goldstein commented on SSHD-974:
-------------------------------------

Are you sure about the problem ? I am running your code against the file you 
attached and I  am getting no exception. If on your environment you can 
reproduce the issue consistently, then I suggest the following:

* Place a debug breakpoint in {{AuthorizedKeyEntry#parseAuthorizedKeyEntry}} 
method at line 293 where the exception is thrown
* Run your code
* Assuming the breakpoint is hit, examine the _value_ and _line_ variables - 
look specifically for any non-space characters after the {{ssh-ed25519}} part - 
e.g., Unicode, tab, backspace, etc....

I strongly suspect that the file you have attached is not an exact copy of the 
file that is causing the problem and that there is some "hidden" character in 
the file that is causing the problem. Therefore, if you could attach a 
_hexdump_ of the file that is causing the problem it would help better diagnose 
the problem.

> AuthorizedKeyEntry fails to parse ed25519 public keys
> -----------------------------------------------------
>
>                 Key: SSHD-974
>                 URL: https://issues.apache.org/jira/browse/SSHD-974
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>         Environment: Arch Linux compiled with OpenJDK 1.8.0_242
>            Reporter: Justin Crawford
>            Assignee: Lyor Goldstein
>            Priority: Minor
>         Attachments: Main.java, error.log, id_ed25519.pub
>
>
> When parsing an authorized keys file, I get a StreamCorruptedException with 
> the error message "Bad format (no key data delimiter)" however this key is 
> accepted by OpenSSH and generated by ssh-keygen. Other key types, such as 
> RSA, are parsed just fine by this parser.
> I attached an example program demonstrating how I am using the parser.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to