Scp.Login Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll
Login()
Authenticates the user to the server interactively and initializes the SCP session. Uses AuthenticationRequest event to request credentials.
Declaration
public void Login()
Login(String)
Authenticates the user to the server interactively and initializes the SCP session. Uses AuthenticationRequest event to request credentials.
Declaration
public void Login(string userName)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username (optional). |
Login(String, String)
Authenticates the user to the server and initializes the SCP session.
Declaration
public void Login(string userName, string password)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
String | password | Password for the specified username. |
Login(String, SshPrivateKey)
Authenticates the user to the server using his private key and initializes the SCP 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 SCP session.
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 SCP session.
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. |
See Also
Login(String, String, SshPrivateKey)
Authenticates the user to the server using a combination of password and public key and initializes the SCP session.
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. |
Login(SshGssApiCredentials)
Authenticates to the server using GSSAPI. Kerberos is only supported on Mono. NTLM is supported on Windows and partially on Mono.
Declaration
public void Login(SshGssApiCredentials credentials)
Parameters
Type | Name | Description |
---|---|---|
SshGssApiCredentials | credentials | Credentials. |