Unfortunately, I've had a look at the code and did not find a way to
do that yet.
The key is retrieved in org.apache.sshd.client.kex.AbstractDHGClient
class, line 101, but there's no way to access it.
Could you raise a JIRA for that ? We need to provide at least a
protected method to check that and even better a pluggable interface
to check the host key.
If you fancy writing a patch for that, you'd be most welcomed.

On Tue, Jul 13, 2010 at 09:35, Doron Fediuck <[email protected]> wrote:
> Hi !
> I'm using sshd as a client, and currently it's doing well. I want to verify 
> the key's fingerprint
> that I get from the ssh server. Checking the source I found the following in 
> ClientSessionImpl.java-
>
>    private void checkHost() throws Exception {
>        // TODO: check host fingerprint
>    }
>
> Is there a way from me the get the host fingerprint from the session or any 
> other object ?
>
> Thanks !
> /d
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to