Back to product page

Authentication property


Determines type of authentication used with the server.

Type

Authentications enumeration value. Constant value that represent one possible type of authentication supported by wodSSH.NET.

Syntax

  • C#
  • VB.NET
Authentications Authentication {get; set; };

Property Authentication As Authentications

Remarks

Authentication property allows you to select type of authentication you want to use with the server. Most commonly, you will choose Authentications.Password authentication, which requires Login and Password properties to be set before Connect method is called. Once wodSSH.NET connects to the server, it will authenticate you ONLY with username and password.

If you prefer to authenticate yourself using your Private Key (server MUST have your public key in that case), you should set this property to Authentications.PublicKey, and you should set Login and PrivateKey properties accordingly.

If you allow any of these authentications to take place, set this property to Authentications.Both value. In this case wodSSH.NET will try to use both methods. Different server implementations may require either one or both of the authentications are successful to login to the server. Please note that in this case you must set all three properties: Login, Password and PrivateKey.

To set your private key, use KeysManager object (included in the setup package) that will allow you to generate, load and save your personal keys.

Platforms

Windows