FileTransferClient.Login Method
Namespace: Rebex.Net
Assembly: Rebex.FileTransfer.dll (version 7.0.8816)
Login(String, String)
Authenticates the user to the server.
Declaration
public void Login(string userName, string password)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
String | password | Password for the given username. |
Implements
Login(String, String, String)
Authenticates the user to the FTP server. This method cannot be used with SFTP protocol.
Declaration
public void Login(string userName, string password, string account)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
String | password | Password for the given username. |
String | account | Account for the given username. |
Remarks
Represents FTP USER/PASS/ACCT command triplet.
For anonymous logins, use "anonymous" as a username and an email as a password (and no account).
If userName is a null reference, "anonymous" is used. If password is a null reference, "guest" is used.
Login(String, String, SshPrivateKey)
Authenticates the user to the server using a combination of password and public key and initializes the SFTP session. This method cannot be used with FTP protocol.
Declaration
public void Login(string userName, string password, SshPrivateKey privateKey)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
String | password | Password for the specified username. |
SshPrivateKey | privateKey | RSA or DSA private key for key-based authentication. |
Remarks
Please note that some servers don't support both password and private key specified at the same time.
Login(String, SshPrivateKey)
Authenticates the user to the server using his private key and initializes the SFTP session.
Declaration
public void Login(string userName, SshPrivateKey privateKey)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
SshPrivateKey | privateKey | RSA or DSA private key for key-based authentication. |
Login(String, SshAuthenticationAgent)
Authenticates the user to the server using his private key and initializes the SFTP session. This method cannot be used with FTP protocol.
Declaration
public void Login(string userName, SshAuthenticationAgent sshAuthenticationAgent)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
SshAuthenticationAgent | sshAuthenticationAgent | An instance of the SshAuthenticationAgent that holds a private key for key-based authentication. |
See Also
Login(String, String, SshAuthenticationAgent)
Authenticates the user to the server using a combination of password and public key and initializes the SFTP session. This method cannot be used with FTP protocol.
Declaration
public void Login(string userName, string password, SshAuthenticationAgent sshAuthenticationAgent)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
String | password | Password for the specified username. |
SshAuthenticationAgent | sshAuthenticationAgent | An instance of the SshAuthenticationAgent that holds a private key for key-based authentication. |
Remarks
Please note that some servers don't support both password and private key specified at the same time.
See Also
Login(SshGssApiCredentials)
Authenticates to the server using GSSAPI. Kerberos (not on .NET CF) and NTLM methods are supported. This method cannot be used with FTP protocol.
Declaration
public void Login(SshGssApiCredentials credentials)
Parameters
Type | Name | Description |
---|---|---|
SshGssApiCredentials | credentials | Credentials. |
Remarks
Only supported on Windows platforms.