Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update libssh2 version to 1.11.0 #183

Open
ionutbaltariu opened this issue Nov 8, 2022 · 8 comments
Open

Update libssh2 version to 1.11.0 #183

ionutbaltariu opened this issue Nov 8, 2022 · 8 comments

Comments

@ionutbaltariu
Copy link

ionutbaltariu commented Nov 8, 2022

libssh2 has to be updated to the latest version in order to fix a bug mentioned in #178

The fix on the libssh2 side was mentioned here: libssh2/libssh2#764

BONUS:
Add steps in documentation to do this update locally, as in:

  • git clone
  • update version of libssh2
  • install ssh2-python with the new libssh2
@pkittenis
Copy link
Member

Pending release of new libssh2 version.

1.10.0 is still the latest version, and that is what is in the repository. This project tracks official releases, not master branch of libssh2.

@ionutbaltariu
Copy link
Author

ionutbaltariu commented Nov 22, 2022

I understand. However, could you provide some steps to manually update the libssh2 version for the project?
I imagine that I could clone the master branch of libssh2 and just do some setup steps to reinstall ssh2-python.

@pkittenis
Copy link
Member

Sure, building with system/self provided libssh2 is documented here.

@ionutbaltariu
Copy link
Author

I have tried to use the documented instructions in order to install ssh2-python with a self-built libssh2 from the latest version on their github repository.

However, it just seems it is not a really trivial task. Does installing under Windows also require installing OpenSSL? While trying to install I get the following error:

LINK : fatal error LNK1181: cannot open input file 'libcrypto64MD.lib'

@ionutbaltariu
Copy link
Author

This is the way I've built libssh2 on Windows:

mkdir dll
cd dll
cmake -DCRYPTO_BACKEND=WinCNG -DBUILD_SHARED_LIBS=ON ..
cmake --build . --target install

Then I've used python .\setup.py build_ext -I C:\libssh2\dll\src\ -L C:\libssh2\dll\src\Debug (Debug is where I found the dll/lib files). I'm really feeling like doing things without actually knowing what they trully mean. Could you help me in this issue?

@tmzhuang
Copy link

@pkittenis as an update, libssh2 release is slated for May 30 2023 according to this thread.

@ionutbaltariu
Copy link
Author

@pkittenis libssh2 1.11 was released today. Could you also update ssh2-python?

@enkore enkore changed the title Update libssh2 version Update libssh2 version to 1.11.0 Nov 10, 2023
@sand-prs
Copy link

Any updates as to when a fix for ssh2-python will be ready?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants