Hi Vasyl, It's technically possible, in the sense that our underlying SSH library supports it, but it's not a well-tested feature even on that end and Fabric doesn't currently offer high-level controls over that functionality.
You may want to dig around in https://github.com/paramiko/paramiko/issues/40 to see if any of the comments or links are immediately useful. You'd be able to get access to the relevant Paramiko level 'guts' by examining `fabric.state.connections`, whose values are Paramiko SSHClient objects ( http://docs.paramiko.org/en/2.3/api/client.html). (Simply requesting e.g. `fabric.state.connections['user@hostname']` will trigger a basic connection even if none exists yet - see http://docs.fabfile.org/en/1.14/api/core/network.html#fabric.network.HostConnectionCache ) Then call the client object's `get_transport()` method, and try messing with the resulting Transport, such as calling its `open_x11_channel()` method ( http://docs.paramiko.org/en/2.3/api/transport.html#paramiko.transport.Transport.open_x11_channel) which ought to bring you to a place where the info in that issue above, is applicable. Best, Jeff On Tue, Nov 7, 2017 at 1:36 AM, Vasyl Vavrychuk <[email protected]> wrote: > Hi, > > Is it possible to do forward x11 for SSH connections established by > fabric? I mean equivalent of passing -X to ssh utility. > > This would allow to run GUI programs from "run(...)" call by fabric. > > Kinds regards, > Vasyl > > _______________________________________________ > Fab-user mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/fab-user > > -- Jeff Forcier Unix sysadmin; Python engineer http://bitprophet.org
_______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
