Giter Club home page Giter Club logo

Comments (5)

amrit-poudel avatar amrit-poudel commented on September 24, 2024 1

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.

bitprophet avatar bitprophet commented on September 24, 2024

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:

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.

garyvdm avatar garyvdm commented on September 24, 2024

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.

dnozay avatar dnozay commented on September 24, 2024

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.

bitprophet avatar bitprophet commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.