1. Post #1
    Gold Member
    madjawa's Avatar
    March 2005
    643 Posts
    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: http://www.netsieben.com/products/ssh/ 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++)

  2. Post #2
    Gold Member
    raccoon12's Avatar
    November 2008
    3,175 Posts
    How much do you know about C++?

  3. Post #3

  4. Post #4
    Gold Member
    madjawa's Avatar
    March 2005
    643 Posts
    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

    Edited:

    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?

  5. Post #5
    Gold Member
    ZeekyHBomb's Avatar
    June 2006
    3,577 Posts
    If you've chosed the dynamic library modes, yes. I don't know about openssl, but zlib can definitely be linked solely statically.

  6. Post #6
    Gold Member
    PvtCupcakes's Avatar
    May 2008
    10,900 Posts
    Oh dayum, libssh (not 2). http://www.libssh.org/

    If libssh2 doesn't work, or you don't like it, libssh is another option. They're unaffiliated with each other.

  7. Post #7
    unironically's Avatar
    July 2009
    28 Posts
    Oh dayum, libssh (not 2). http://www.libssh.org/

    If libssh2 doesn't work, or you don't like it, libssh is another option. They're unaffiliated with each other.
    curl uses libssh2 :colbert:

  8. Post #8
    Gold Member
    PvtCupcakes's Avatar
    May 2008
    10,900 Posts
    curl uses libssh2 :colbert:
    They book look good. They're both done in C and have git repositories, instant win in my book. :3: