Authenticates to the SSH server using a username and an RSA or DSA private key.
Namespace:
Rebex.Net
Assembly:
Rebex.Networking (in Rebex.Networking.dll)
Syntax
Visual Basic |
---|
Public Sub Authenticate ( _ userName As String, _ privateKey As SshPrivateKey _ ) |
C# |
---|
public void Authenticate( string userName, SshPrivateKey privateKey ) |
Parameters
- userName
- Type: System..::..String
Username.
- privateKey
- Type: Rebex.Net..::..SshPrivateKey
RSA or DSA private key for key-based authentication.