Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perform a SSH connection with Windows API in C/C++?

I currently have two applications, one is on Windows and one is on Linux. They need to work together (There's socket interaction between them and so on).

I need to somehow make only one application, but I still need things to operate on the linux side.

What I'm looking for is some API available in Windows to open a SSH connection (I think that a telnet connection will also do, not sure though), and dispatch a few commands through it to my Linux PC (To start sending some stuff).

I'm bound to using Windows API on VS2005 in C/C++. I used plink for a bit, and it's very nice and useful, but I can't have a third-party installation to make it work.

I really appreciate your help.

like image 944
fashasha Avatar asked Feb 14 '13 15:02

fashasha


2 Answers

I have not used this myself but libssh looks like it would fit the bill for you.

like image 150
Steve Townsend Avatar answered Oct 02 '22 05:10

Steve Townsend


You might have a look to ChilkatSoftware at http://www.chilkatsoft.com/ssh-features.asp, they offer a SSH API for Windows.

like image 37
ThomasMZ Avatar answered Oct 02 '22 06:10

ThomasMZ