Creates a new SFTP client instance with defaut SSH port(22).
Namespace: Jscape.SftpAssembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0
Syntax
C# |
---|
public Sftp(
string hostname,
string username,
string password,
DirectoryInfo localDir
) |
Visual Basic |
---|
Public Sub New ( _
hostname As String, _
username As String, _
password As String, _
localDir As DirectoryInfo _
) |
Visual C++ |
---|
public:
Sftp(
String^ hostname,
String^ username,
String^ password,
DirectoryInfo^ localDir
) |
Parameters
- hostname
- Type: System..::..String
the server hostname
- username
- Type: System..::..String
the user name
- password
- Type: System..::..String
the user password
- localDir
- Type: System.IO..::..DirectoryInfo
the local directory
See Also