I googled "libbssh vs libssh2" , couldn't find good explanation about the difference between of them.
What is the major difference ?
The main functionality that i need is copying files , which of the lib is recommended ?
libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel, manage public keys and much more ... Features. libssh is a library written in C implementing the SSH protocol.
The libssh2 packages provide a library that implements the SSH2 protocol. The libssh2 packages have been upgraded to upstream version 1.4.2, which provides a number of bug fixes and enhancements over the previous version, including fixes for memory leaks, missing error handling, and incompatibilities in the SSH2 protocol implementation.
I think SCP or SFTP might solve your problem, and yes, the two subsystems are both supported by libssh and libssh2. However one of the main differences is that you can't implement server side applications with libssh2, so pick up libssh instead.
libssh – The SSH Library! The SSH library! libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel, manage public keys and much more ...
The differences are in the link answered by ericcuritin.
As you asked:
The main functionality that i need is copying files, which of the lib is recommended?
I think SCP or SFTP might solve your problem, and yes, the two subsystems are both supported by libssh
and libssh2
.
However one of the main differences is that you can't implement server side applications with libssh2
, so pick up libssh
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With