what is the major difference libssh vs libssh2? [closed]
Asked Answered
L

3

10

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 ?

Lashonlashond answered 13/4, 2019 at 19:42 Comment(0)
A
6

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.

Asaasabi answered 26/1, 2022 at 14:41 Comment(3)
Thank you for the answer ! Can you please point to a resource where we can explore more of recent developments in libssh ?Quadriceps
The best place to look for is the change log of libsshAsaasabi
Arguably the most significant difference is their license: libssh is LGPL while libssh2 is BSD-licensed.Hawfinch
K
2

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.

Kamacite answered 12/2, 2020 at 10:16 Comment(2)
the [answered] link is broken, there is no answer by ericcuritin any moreLemieux
@törzsmókus oh the link is libssh2.org/libssh2-vs-libssh.htmlKamacite
C
-13

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.

Cambogia answered 29/11, 2019 at 11:13 Comment(1)
The support for SSHv1 has been removed since libssh-0.8.0, here's the release note. That's to say libssh used to support both SSHv1 and SSHv2.Kamacite

© 2022 - 2024 — McMap. All rights reserved.