SSH connection to Windows API in C / C ++?
I currently have two applications, one is on Windows and one is on Linux. They have to work together (there is a socket communication between them, etc.).
I only need to make one application somehow, but I still need something to work on the Linux side.
What I'm looking for is some API available on Windows to open an SSH connection (I think a telnet connection will do too, not sure) and send a few commands through it to my Linux PC (for start sending some materials).
I am required to use Windows API on VS2005 in C / C ++. I have used plink a bit and it is very nice and useful, but I cannot install a third party installation to make it work.
I really appreciate your help.
There is no built-in SSH client (or library) on Windows. If you don't want to do this from scratch, I'll take a look at PuTTY and related programs again. they can be distributed with your application, so no additional installation is required. It's also open source (depending on licensing) you can reuse / port some of the code.
You can take a look at ChilkatSoftware at http://www.chilkatsoft.com/ssh-features.asp , they offer SSH API for Windows.
I haven't used this myself, but libssh looks like it would work for you.
Cygwin is an implementation of gnu tools for Windows systems. This brings the bash shell to the Windows desktop, for example. It is also possible to install a ssh server which cygwin is based on Windows.
Maybe have a look at the linked libraries cygwin will bring you something.