Comments (7)
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.
Use userauth_publickey_frommemory instead to work around.
Does not work, same behavior. Any other suggestions?
from ssh2-python.
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.
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.
Hello @pkittenis!
Any updates on this issue?
from ssh2-python.
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.
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)
- Unknown error while starting the session HOT 1
- Fails to build on Python 3.11 - longintrepr.h: No such file or directory HOT 1
- ssh2-python is unable to establish connection with RHEL 9 SSHD HOT 2
- Remove Python 2 support badge HOT 1
- `SocketRecvError` on resuming upload of partially uploaded files HOT 2
- Update libssh2 version to 1.11.0 HOT 8
- Help installing ssh2-python on alpine docker container HOT 1
- ssh2-python failed to install on windows 11 python 3.11, python 3.10 install succeded HOT 1
- Unable to install on python 3.10 macOS M1 HOT 2
- [Feature request] Musllinux wheel
- Python 3.12 support HOT 1
- Feature request: enable compression flag HOT 3
- Drop EOL Python versions (3.6, 3.7)
- Drop manylinux2010 wheels
- Migrate to OpenSSL 3
- Migrate to Cython 3
- Automate updating of vendored libraries
- scp does not write to file
- Core dump when calling session.methods()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssh2-python.