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 ?
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 ?
The difference mentioned in https://www.libssh2.org/libssh2-vs-libssh.html is nowadays almost outdated. There i believe was a time when libssh2 was more preferred but today libssh support new age cyphers like AES-GCM.
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.
libssh is based on SSH, which is considered obsolete. libssh2 is based on SSH2 which is more secure and efficient than SSH and functionally similar to FTP, but SSH2 encrypted.
If you are concerned about security and performance, I recommend libssh2.
© 2022 - 2024 — McMap. All rights reserved.