"Host key not verified"

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
mvalent
Posts: 62
Joined: Thu 04 Nov 2004 17:42

"Host key not verified"

Post by mvalent » Mon 14 Jan 2008 11:31

I get this error when I try to connect to the server with SSH.
I use password authentication.
How can I get rid of this error ?

Dimon
Devart Team
Posts: 2889
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 17 Jan 2008 07:23

This error occurs if the key received from the server and the key specified in HostKeyName do not match.
You should handle the TScSSHClient.OnServerKeyValidate event. You can find more detailed information about this event in the SecureBridge help. Also you can look at the example of handling this event in the SSHClient demo.

Valerdos
Posts: 2
Joined: Fri 01 Aug 2008 19:00
Contact:

Post by Valerdos » Fri 01 Aug 2008 19:10

Hi!
I have the same problem with SSHShell-example from Demos folder.
But this problem have place only in case when I use public key authentication. In case with password - all ok.
Otherwise, when I try to connect to the same server with putty.exe - I have not a problem. What I can to do with SSHShell for successfully connect with public key authentication?

Valerdos
Posts: 2
Joined: Fri 01 Aug 2008 19:00
Contact:

Post by Valerdos » Sat 02 Aug 2008 20:27

Problem is solved. We need to rename a private key after generating. SSHShell lets same names for generated private key and received public host key - name/ip of host.

Post Reply