edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Add a hostname/public key pair to the known hosts data.

Namespace: EnterpriseDT.Net.Ftp.Ssh
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public void AddKnownHost(
	string host,
	byte[] publicKeyFile
)
Visual Basic
Public Sub AddKnownHost ( _
	host As String, _
	publicKeyFile As Byte() _
)
Visual C++
public:
void AddKnownHost(
	String^ host, 
	array<unsigned char>^ publicKeyFile
)

Parameters

host
Type: System..::..String
hostname
publicKeyFile
Type: array<System..::..Byte>[]()[][]
byte array containing the public key for host

See Also