Authenticates the user to the server using his private key and initializes the SCP session.

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

Syntax

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

Parameters

userName
Type: System..::..String
The username.
privateKey
Type: Rebex.Net..::..SshPrivateKey
RSA or DSA private key for key-based authentication.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also