• SSH C++ library?
    7 replies, posted
I'm coding a simple C++ program, and I want to execute a command on a remote server via SSH. But I can't find a proper SSH library. Well, I found this one: [url]http://www.netsieben.com/products/ssh/[/url] but I don't really know how to compile it on windows (it uses the "Botan" library, which I managed to compile) Thanks in advance :) (as you can see, I'm pretty new to C++)
How much do you know about C++?
[url]http://www.libssh2.org/wiki/index.php/Main_Page[/url]
[QUOTE=unironically;15946140][url]http://www.libssh2.org/wiki/index.php/Main_Page[/url][/QUOTE] Thank you! I already found this before posting, but I didn't realise that I needed Visual C++ to compile it. Now it works :D [editline]12:35PM[/editline] A last question: I had to compile the openssl and zlib libraries, so does it mean that I'll have to include libssh2.dll, zlib1.dll and the openssl dll with my exe, right?
If you've chosed the dynamic library modes, yes. I don't know about openssl, but zlib can definitely be linked solely statically.
Oh dayum, libssh (not 2). [url]http://www.libssh.org/[/url] If libssh2 doesn't work, or you don't like it, libssh is another option. They're unaffiliated with each other.
[QUOTE=PvtCupcakes;15961390]Oh dayum, libssh (not 2). [url]http://www.libssh.org/[/url] If libssh2 doesn't work, or you don't like it, libssh is another option. They're unaffiliated with each other.[/QUOTE] curl uses libssh2 :colbert:
[QUOTE=unironically;15962218]curl uses libssh2 :colbert:[/QUOTE] They book look good. They're both done in C and have git repositories, instant win in my book. :3:
Sorry, you need to Log In to post a reply to this thread.