[ https://issues.apache.org/jira/browse/SSHD-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Goldstein Lyor updated SSHD-366: -------------------------------- Attachment: 0005-Cross-reference-provided-host-keys-with-configured-s.patch Attached is a proposed patch for the problem - it throws an SSH exception, but perhaps some other mechanism should be used (or perhaps some *IllegalStateException* would be better + logging) > Need to cross reference provided host keys with configured signature factories > ------------------------------------------------------------------------------ > > Key: SSHD-366 > URL: https://issues.apache.org/jira/browse/SSHD-366 > Project: MINA SSHD > Issue Type: Improvement > Affects Versions: 0.13.0 > Reporter: Goldstein Lyor > Priority: Minor > Attachments: > 0005-Cross-reference-provided-host-keys-with-configured-s.patch > > > The code in _ServerSession#sendKexInit_ assumes that the provided key types > from the _KeyPairProvided#getKeyTypes_ are the ones to use during the > negotiation with the client. However, if there is no intersection between the > 2, there is no detection or logging of the problem (even though the > connection fails). -- This message was sent by Atlassian JIRA (v6.3.4#6332)