Authenticates to the SSH server using a username and an RSA or DSA private key and a password.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public Sub Authenticate ( _
	userName As String, _
	password As String, _
	privateKey As SshPrivateKey _
)
C#
public void Authenticate(
	string userName,
	string password,
	SshPrivateKey privateKey
)

Parameters

userName
Type: System..::..String
Username.
password
Type: System..::..String
Password.
privateKey
Type: Rebex.Net..::..SshPrivateKey
RSA or DSA private key for key-based authentication.

Remarks

This method is supported by GlobalScape SFTP server.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also