SshSession.Authenticate Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
Authenticate(String)
Authenticates to the SSH server interactively. Uses AuthenticationRequest to ask for credentials.
Declaration
public void Authenticate(string userName)
Parameters
Type | Name | Description |
---|---|---|
String | userName | Username (optional). |
Authenticate(String, SshPrivateKey)
Authenticates to the SSH server using a username and an RSA or DSA private key.
Declaration
public void Authenticate(string userName, SshPrivateKey privateKey)
Parameters
Type | Name | Description |
---|---|---|
String | userName | Username. |
SshPrivateKey | privateKey | RSA or DSA private key for key-based authentication. |
Authenticate(String, SshAuthenticationAgent)
Authenticates to the SSH server using a username and a private key that is stored in sshAuthenticationAgent
.
Declaration
public void Authenticate(string userName, SshAuthenticationAgent sshAuthenticationAgent)
Parameters
Type | Name | Description |
---|---|---|
String | userName | Username. |
SshAuthenticationAgent | sshAuthenticationAgent | An instance of the SshAuthenticationAgent that holds a private key for key-based authentication. |
See Also
Authenticate(String, String)
Authenticates to the SSH server using a username and password.
Declaration
public void Authenticate(string userName, string password)
Parameters
Type | Name | Description |
---|---|---|
String | userName | Username. |
String | password | Password. |
Authenticate(String, String, SshPrivateKey)
Authenticates to the SSH server using a username and an RSA or DSA private key and a password.
Declaration
public void Authenticate(string userName, string password, SshPrivateKey privateKey)
Parameters
Type | Name | Description |
---|---|---|
String | userName | Username. |
String | password | Password. |
SshPrivateKey | privateKey | RSA or DSA private key for key-based authentication. |
Remarks
This method is supported by GlobalScape SFTP server.
Authenticate(String, String, SshAuthenticationAgent)
Authenticates to the SSH server using a username and an RSA or DSA private key and a password.
Declaration
public void Authenticate(string userName, string password, SshAuthenticationAgent sshAuthenticationAgent)
Parameters
Type | Name | Description |
---|---|---|
String | userName | Username. |
String | password | Password. |
SshAuthenticationAgent | sshAuthenticationAgent | An instance of the SshAuthenticationAgent that holds a private key for key-based authentication. |
Remarks
This method is supported by GlobalScape SFTP server.
See Also
Authenticate(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 Authenticate(SshGssApiCredentials credentials)
Parameters
Type | Name | Description |
---|---|---|
SshGssApiCredentials | credentials | Credentials. |