Replies: 2 comments 1 reply
-
|
If you want to read and write bytes instead of Unicode strings, you need to set If you're just trying to pass bytes through some kind of tunnel, you probably should avoid requesting a PTY or setting |
Beta Was this translation helpful? Give feedback.
-
|
You are setting As for the line editor, you are passing through the terminal type, so if a terminal was requested by the SSH client connection to the AsyncSSH listener, it will request a terminal upstream as well. That sort of makes sense in your use case, but that means the line editor might be enabled by default, and so you'll want to explicitly set that to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My script is just a fancy wrapper around ssh to forward the connection to an internal server, accomplished using
process.redirect. Whenever I use .set_line_mode(False), the connection just closes. When I pass line_editor=False to asyncssh.listen, it changes the class ofprocess.channel, but it still echoes lines edited, and displays cursor movements. ANSI doesn't work, it throws an error about strings. Seriously, what do I do to enable byte support and line editing? I'm at a complete loss.Beta Was this translation helpful? Give feedback.
All reactions