Kostenloser SFTP-client mit dll hochladen und downloaden Sie die Datei in C#

Ich bin auf der Suche nach einem SFTP-Client, der kostenfrei ist. Auch sollte es eine Kostenlose dll, mit denen kann ich code schreiben, hochladen und downloaden Sie die Datei in C# (.NET framework).

Beispielsweise folgende code ist nicht frei, es hat 30 Tage Kostenlose Testversion, ich will es kostenlos,

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.");
InformationsquelleAutor user358591 | 2010-07-20
Schreibe einen Kommentar