Does control support Host Key Validation - WeOnlyDo Discussion board

Does control support Host Key Validation (wodSFTP / wodSFTP.NET / wodSFTPdll)

by jimcam, Monday, January 30, 2006, 22:23 (6872 days ago)

Does the sftp control support host key validation?

Re: Does control support Host Key Validation

by wodAlan, Tuesday, January 31, 2006, 00:49 (6872 days ago) @ jimcam

Does the sftp control support host key validation?

Hi,
Yes, our wodSFTP component support host key validation. Try to use Fingerprint under HostFingerprint Event.

Here is the example:
[code]Private Sub wodSFTP1_HostFingerprint(ByVal Fingerprint As String,
Accept As Boolean)
If Fingerprint = 8c:cb:8a:1e:47:af:f3:bd:2b:b5:f9:23:dc:51:eb:21 Then
Accept = True
Debug.Print accepted ; Fingerprint
Else
Accept = False
Debug.Print Fingerprint is not accepted
End If
End Sub
[/code]
I recommend to save Fingerprint of your server for trying to connect later to that server.

You can find more help in the manual of wodSFTP or you can see it online
http://www.weonlydo.com/SFTP/Help/wodSFTPCOMLib~IwodSFTPNotify~HostFingerprint.html
I hope that I helped you! Let me know how it goes!

Re: Does control support Host Key Validation

by jimcam, Tuesday, January 31, 2006, 15:31 (6871 days ago) @ wodAlan

Thanks, that answers my question. Also, thanks for the code... works great.