Differences
This shows you the differences between the selected revisions of the page.
library 2023-12-16 | library 2024-10-03 (current) | ||
Line 14: | Line 14: | ||
The library is not a general purpose file transfer library. It particularly has a limited support for an interactive processing, and as such it is not well suited for use in GUI applications. | The library is not a general purpose file transfer library. It particularly has a limited support for an interactive processing, and as such it is not well suited for use in GUI applications. | ||
- | Because the assembly uses ''winscp.exe'' internally, it is also difficult (but not impossible) to use the assembly within a restricted environment like a web server (e.g. with ASP.NET), that limits or even restricts execution of external processes. | + | Because the assembly uses ''winscp.exe'' internally, it is also difficult (but not impossible) to use the assembly within a restricted environment like a ==web== server (e.g. with ASP.NET), that limits or even restricts execution of external processes. |
===== Downloading and Installing the Assembly ===== | ===== Downloading and Installing the Assembly ===== | ||
Line 83: | Line 83: | ||
SessionOptions sessionOptions = new SessionOptions | SessionOptions sessionOptions = new SessionOptions | ||
{ | { | ||
- | Protocol = Protocol.Ftp, | + | Protocol = Protocol.Sftp, |
HostName = "example.com", | HostName = "example.com", | ||
UserName = "user", | UserName = "user", | ||
Password = "mypassword", | Password = "mypassword", | ||
- | ··········· | + | SshHostKeyFingerprint = "ssh-rsa 2048 xxxxxxxxxxx..." |
}; | }; | ||