SFTPPro Example

first include the class in ur page
using SFTPPro.SFTPServer;

Example of SFTP Connection and methods

Sftp sftpServer = new Sftp(strSFTPHost,strSFTPUserName,strSFTPPassword);
sftpServer.Connect();

if (sftpServer.Connected)
{
ArrayList alFilelist=sftpServer.GetFileList("");
sftpServer.Get("strfromFilePath", "strToFilePath");
sftpServer.Put("strfromFilePath", "strToFilePath");
sftpServer.RemoveFile("<filename>");
}
sftpServer.Close();

Comments

Popular posts from this blog

To Move items from one ListBox to another Listbox

Receive Json Web response in C#