Page 1 of 1

"Host key not verified"

Posted: Mon 14 Jan 2008 11:31
by mvalent
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 ?

Posted: Thu 17 Jan 2008 07:23
by Dimon
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.

Posted: Fri 01 Aug 2008 19:10
by Valerdos
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?

Posted: Sat 02 Aug 2008 20:27
by Valerdos
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.