SSH is a secure network protocol to use remote shell services or execute commands. You can connect to a remote server by SSH on Visual Studio. To do this, you need a SSH library. My suggestion is SharpSSH.
Download DLL files from SourceForge. You should add these DLL files to your Visual Studio project:
To connect to server and execute commands, code is here:
When you develop an application that needs exporting capability for several type of files, you should use some internal or external programming libraries. I will mention a few useful and free libraries for our exporting purposes.
I don’t want to give much explanation about these libraries because you can find out easily If you want. My purpose is giving the summary (library name and basic code) about that.
After install Cygwin by following this document (or this one as backup), the next step would be installing Moshell (Step 13 in that document). When you type bash moshell_install command, you see an error like this:
!!! Your cygwin installation is out of date and incompatible with the latest moshell version !!! Please upgrade to the latest cygwin version by rerunning the setup.exe from www.cygwin.com/setup.exe
It is a common problem. You are not alone. To resolve this problem:
Check your cygwin version (Command: cygcheck -V)
Check www.cygwin.com for the latest version.
If you are sure that you have latest version, open “moshell_install” file (under “C:\cygwin\home\USERID“).
Change rows 201 between 209 as the screenshot below (add “#” symbols before commands):