Comments (5)
Tried everything mentioned on this thread, but nothing seems to work on macosx big sur (local machine) with python 3.9 and xquartz installed on the macosx. ssh -X on the terminal works without any issue.. Main issue is echo $DISPLAY on macosx returns /tmp/…./org.xquartz:0 which does not work with xlib_connect.get_display(). Then paramiko’s channel.request_x11() fails. Its been a decade, and a workable solution still doesn’t seem to exist. I would truly appreciate if anyone could offer a workable solution/code to this problem. Thanks!
from paramiko.
N.B. above "commit reference" is unfortunately for another repo that got merged into this one. It is 100% unrelated.
Making this ticket the clearinghouse for "wtf X11?". Other instances of people having problems with this:
- http://stackoverflow.com/questions/12354047/x11-forwarding-with-paramiko?rq=1
- http://stackoverflow.com/questions/4448089/paramiko-x11-mode-with-python-programming
- http://www.mail-archive.com/[email protected]/msg00490.html
- http://superuser.com/questions/217420/paramiko-ssh-x-option
Unfortunately I haven't used the X11 bits in Paramiko myself so I have no immediate or obvious fix (and I have other higher priorities re: digging in :(). However I'm more than willing to assist anybody who has a clue, or who can at least be available on eg IRC to help test/debug things on their end.
from paramiko.
I wrote a working example for one of the stackoverflow questions. See http://stackoverflow.com/a/12903844/72911
It still needs some work, for example, I want to make it handle multiple connections. But it is a start....
from paramiko.
As Gary pointed out in the stackoverflow answer, the handler for x11 requests needs to:
- accept the connection
- open a connection to local display.
- add descriptor for both remote end and local display to poll / select() fd list
then while there's data to handle
- forward data back and forth between remote end and local x11 display.
from paramiko.
Thanks @garyvdm & @dnozay! Still don't have time to dig into this in full, but it sounds like the issue is "no concrete example included in the source" -- not "X11 channel support is actually broken." Yes? no?
Gary's link implies "yes", so I'd definitely merge a pull request adding @garyvdm's example as a new file in demos/
, with the notes inlined as comments or as docstrings (module-level or otherwise).
from paramiko.
Related Issues (20)
- [BUG] - Wrong agreed keys (preferred_keys)
- [BUG] - Invoke_Shell deadlocks on remote reboot.
- [FEAT] - add demo of non-interactive ssh client
- [BUG] - SFTP disables further prefetching on single prefetching failure
- [SUPPORT] - Deprecation Warning for TripleDES Algorithm in Paramiko HOT 39
- [BUG] - Attempting to resize window while using Fabric + Paramiko to stream cloudinit logs
- [SUPPORT] - <Paramiko rekey related support required>
- [SUPPORT] - Handle Tailscale SSH authentication HOT 3
- [BUG] CryptographyDeprecationWarning: TripleDES has been moved to cryptography HOT 1
- [BUG] - <paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 10.0.89.23> HOT 1
- Anaconda release not up to date HOT 1
- [FEAT] - Allow selecting SSH-Agent (OpenSSH vs Pageant)
- [SUPPORT] - Print Statements Missing
- [BUG] - paramiko.ssh_exception.SSHException: not a valid OPENSSH private key file when connecting to RHEL 9.X
- [FEAT] - Publickey authentication should default to the algorithm of the private key
- [BUG] - Actual Error message overwrite during auth_publickey failure
- [SUPPORT] - Cannot connect to the SFTP server with error paramiko.ssh_exception.ChannelException: ChannelException(1, 'Administratively prohibited')
- [BUG] - SSH Certificates authentication and and ssh-agent
- [BUG] - Writing more than 32675 bytes decreases performance by 99% HOT 4
- [BUG] - BufferedFile.read can fail to return buffered when timeouts occur
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 paramiko.