Code Monkey home page Code Monkey logo

Comments (7)

pkittenis avatar pkittenis commented on June 8, 2024

Hi there,

Thanks for the interest and report.

This is a known issue with publickey_fromfile and ED25519 keys on Windows only. I suspect Window's file locking behaviour is the root cause.

Use userauth_publickey_frommemory instead to work around.

from ssh2-python.

epuscasu avatar epuscasu commented on June 8, 2024

Use userauth_publickey_frommemory instead to work around.

Does not work, same behavior. Any other suggestions?

from ssh2-python.

pkittenis avatar pkittenis commented on June 8, 2024

Yes, also tested.

I've not found a way to make ED25519 keys work on Windows clients. I'd suggest using ECDSA or any other type of key.

Can also use the high level client pssh.clients.ssh.SSHClient - documentation here.

from ssh2-python.

pkittenis avatar pkittenis commented on June 8, 2024

Reference ParallelSSH/parallel-ssh#285

ED25519 key files cannot be loaded by neither userauth_publickey_fromfile nor userauth_publickey_frommemory on Windows clients only.

Most probably a bug with upstream libssh2. Needs C test case and tracing output to investigate and raise with libssh2.

from ssh2-python.

ionutbaltariu avatar ionutbaltariu commented on June 8, 2024

Hello @pkittenis!
Any updates on this issue?

from ssh2-python.

ionutbaltariu avatar ionutbaltariu commented on June 8, 2024

Hello again, @pkittenis

It seems the issue was fixed in the latest version of libssh2. Is there a chance to update libssh2 on this repository as well?

from ssh2-python.

pkittenis avatar pkittenis commented on June 8, 2024

Pending new release of libssh2 that contains the fix.

1.10.0 is so far the latest version and it does not contain the fix.

from ssh2-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.