Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the major difference libssh vs libssh2?

Tags:

libssh2

libssh

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 ?

like image 459
LIOR Avatar asked Apr 13 '19 19:04

LIOR


People also ask

What is libssh in Linux?

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.

What are the libssh2 packages?

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.

Is it possible to use SCP and SFTP with libssh2?

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.

What is SSH library in Linux?

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 ...


1 Answers

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.

like image 141
IronBlood Avatar answered Oct 02 '22 04:10

IronBlood