SshSession.Authenticate Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)
Authenticate(String)
Authenticates to the SSH server interactively.
Uses Authentication
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. |
Ssh |
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. |
Ssh |
sshAuthenticationAgent | An instance of the Ssh |
See Also
Authenticate(String, String)
Authenticates to the SSH server using a username and password.
Declaration
public void Authenticate(string userName, string password)
Parameters
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. |
Ssh |
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. |
Ssh |
sshAuthenticationAgent | An instance of the Ssh |
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 |
---|---|---|
Ssh |
credentials | Credentials. |