Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Sftp.Login Method

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

Login()

Authenticates the user to the server interactively and initializes the SFTP session. Uses AuthenticationRequest event to request credentials.

Declaration
public void Login()

Login(String)

Authenticates the user to the server interactively and initializes the SFTP 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 SFTP session.

Declaration
public void Login(string userName, string password)
Parameters
Type Name Description
String userName

The username.

String password

Password for the specified username.

Implements
IFtp.Login(String, String)

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.

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
OpenSshAgent
Pageant
LegacyPageant

Login(String, String, SshAuthenticationAgent)

Authenticates the user to the server using a combination of password and public key and initializes the SFTP 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.

Remarks

Please note that some servers don't support both password and private key specified at the same time.

See Also
OpenSshAgent
Pageant
LegacyPageant

Login(String, String, SshPrivateKey)

Authenticates the user to the server using a combination of password and public key and initializes the SFTP 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.

Remarks

Please note that some servers don't support both password and private key specified at the same time.

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.

In This Article
  • Login()
  • Login(String)
  • Login(String, String)
  • Login(String, SshPrivateKey)
  • Login(String, SshAuthenticationAgent)
  • Login(String, String, SshAuthenticationAgent)
  • Login(String, String, SshPrivateKey)
  • Login(SshGssApiCredentials)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies