SshParameters.SetHostKeyAlgorithms Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)
SetHostKeyAlgorithms(String[])
Specifies a list of allowed host key algorithms IDs and their order.
Setting the list to null (Nothing in VB.NET) or an empty list specifies that the default list and order is to be used.
When the list is set, Host
Declaration
public void SetHostKeyAlgorithms(params string[] algorithmIds)
Parameters
Type | Name | Description |
---|---|---|
String[] | algorithmIds | List of host key algorithm IDs. |
Remarks
Currently, supported algorithms are: "ssh-dss", "ssh-rsa", "ssh-rsa-sha256@ssh.com", "rsa-sha2-256", "rsa-sha2-512", "x509v3-rsa2048-sha256", "x509v3-ecdsa-sha2-nistp256", "x509v3-ecdsa-sha2-nistp384", "x509v3-ecdsa-sha2-nistp521", "x509v3-sign-rsa-sha256@ssh.com", "x509v3-sign-rsa", "x509v3-sign-dss", "ecdsa-sha2-nistp256", "ecdsa-sha2-nistp384", "ecdsa-sha2-nistp521", "ssh-ed25519".