DotNetLibs File Server is an SFTP, SCP and SSH server library for C# and VB.NET developers. Its help you create an SFTP server to provide secure remote file system access over an SSH channel using the SFTP protocol. Written entirely in managed code and works with Mono and .NET 2.0, 3.0, 3.5, 4.0 and 4.5 including Mono. Features
Quick start samplesStart a server
// Create a FileServer class instance var server = new FileServer(); // Listen on port 22 server.Bind(22, FileServerProtocol.Sftp); // Add server key server.Keys.Add(new SshPrivateKey("key.ppk", "password")); // Add a user server.Users.Add("myuser", "password", @"c:\project\data\myuser"); // Start the server server.Start();
|