Comments (3)
Hi there,
Thanks for the interest and report.
Yes, this is an issue with the process_startup
function. For shell requests, no message should be sent but the function does not allow that. An empty string as the message (as opposed to no message), is not accepted by the server which terminates the connection.
The next version will have a channel.shell()
function which was missing - the libssh2 macro for shell process startup - as well as a revised process_startup
which allows for no message.
From next version onwards:
channel = session.open_session()
channel.shell()
channel.write('my command\n')
size, data = channel.read()
<..>
Note that a pty is not explicitly required for interactive shells though it may be used.
from ssh2-python.
Yes indeed, the macro in libssh2 uses a null pointer as message. My knowledge of Cython is limited, but I'll try to submit a pull request if I find the time. Thanks a lot!
from ssh2-python.
That was fast, it's small fix but still. Thanks a lot, though I will open a new ticket. I would like to test your branch and the only way to find how to build it was to look at Travis. Keep up the good work!
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.