我正在尋找一個免費的SFTP客戶端。也應該有一個免費的DLL,我可以編寫代碼上傳和下載C#(.NET框架)文件。免費的SFTP客戶端與DLL上傳和下載文件在C#
例如下面的代碼是不是免費的,它有30天的免費評估,我想它是免費的,
Chilkat.SFtp sftp = new Chilkat.SFtp();
bool success;
success = sftp.UnlockComponent("Anything for 30-day trial");
sftp.ConnectTimeoutMs = 5000;
sftp.IdleTimeoutMs = 10000;
int port;
string hostname;
hostname = "www.my-ssh-server.com";
port = 22;
success = sftp.Connect(hostname,port);
success = sftp.AuthenticatePw("myLogin","myPassword");
success = sftp.InitializeSftp();
string handle;
handle = sftp.OpenFile("hamlet.xml","readOnly","openExisting");
success = sftp.DownloadFile(handle,"c:/temp/hamlet.xml");
success = sftp.CloseHandle(handle);
MessageBox.Show("Success.");
http://stackoverflow.com/questions/1753709/implementing-sftp-in-2-0 http://stackoverflow.com/questions/530330/sftp-libraries-for-net – 2010-08-25 15:40:11