PasswordConnectionInfo Constructor (String, String, String)SSH .NET Client Library Documentation
Initializes a new instance of the PasswordConnectionInfo class.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public PasswordConnectionInfo(
	string host,
	string username,
	string password
)
Exceptions

Examples

var connectionInfo = new PasswordConnectionInfo(host, username, password);
using (var client = new SftpClient(connectionInfo))
{
    client.Connect();
    //  Do something here
    client.Disconnect();
}
See Also