Comments (4)
Hi there,
Thanks for the interest. Issue tracker is for bugs/feature requests with the code, this is better asked on the mail group.
execute
requires a new channel (not session) for each command. Interactive shell can be used instead, though execute cannot be used in the case, will have to read/write from shell manually.
If you are looking for a higher level client, see paralell-ssh.
from ssh2-python.
Hi
i know that shell require read/write cycle
but the last read hang.. this is all about
do you suggest to use paralell-ssh?
anyhow to reopen the issue?
from ssh2-python.
The read hangs because there is no more data to be read. On interactive channels no EOF is sent by server to indicate channel has finished. That is expected behaviour of the API in blocking mode. Will need to check if there is anything pending to be read presumably by either Session.block_directions
or Channel.poll_read
- haven't tried it.
This project is a wrapper to libssh2, similar code is needed to use it directly as for using libssh2. There are not examples for doing everything not even for libssh2 C code. PRs welcome.
If a more higher level client is what is needed, see parallel-ssh
. It has both parallel and single host high level clients based on this project.
from ssh2-python.
Thanks!
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
- ed25519 key auth fails with FileError HOT 7
- `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.