'Implementing SSH Server in C#/.Net
A project we're working on just got a new requirement added to it: it has to be able to receive files through SFTP (SSH) using key/pair authentication. We've been able to find an interesting collection of SSH client libraries (such as SSH.Net), but no server ones. The closest we've found so far is a Python library that we're debating implementing through IronPython.
How should we go about doing this? Are we missing any libraries, or should we work on implementing it ourselves?
Solution 1:[1]
Quick search for ".NET SSH server" on google reveals our SecureBlackbox on 4th position. Among numerous other features SecureBlackbox offers SSH/SFTP server components for .NET.
Solution 2:[2]
Also, FxSsh is a pure C# implementing SSH server side. In this stage, supported EXEC method and return stream.
you are welcome Fork and Contribute on https://github.com/Aimeast/FxSsh
Solution 3:[3]
Rebex Tiny SFTP Server is a minimalist SFTP server written in C#. You can find sources at https://github.com/rebexnet/RebexTinySftpServer. It depends on a commercial component though.
The list of SFTP server components which will enable you to write your own server application can be found at https://www.sftp.net/server-libraries. I am aware of only two of them: one is from nSoftware (originaly from Eldos) and one from Rebex.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Eugene Mayevski 'Callback |
Solution 2 | Aimeast |
Solution 3 | Martin Vobr |