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();
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