Discussion:
how to run remote X application
Brent S. Elmer Ph.D.
2010-10-22 13:33:07 UTC
Permalink
Is there a way to run X applications on a remote server in paramiko? I
have SSHClient commands working nicely in my python code. I would like
to run remote X applications from my python code also. For example,
something like the following:

ssh -Y ***@someserver.com xterm -e /usr/binksh -c ./.remoteprofile

The command logs me into someserver.com, starts an xterm and
runs .remoteprofile that dots in a profile. It uses trusted X11
forwarding to automatically display the xterm in my local X display.

Or do something like start emacs on the remote server and have it show
on my local X display.

Or do crontab -e and have it open emacs in my local X display to edit
the crontab.

I have tried playing with open_x11_channel but it never seemed to work.

Brent
Brent S. Elmer Ph.D.
2010-10-22 13:33:26 UTC
Permalink
Is there a way to run X applications on a remote server in paramiko? I
have SSHClient commands working nicely in my python code. I would like
to run remote X applications from my python code also. For example,
something like the following:

ssh -Y ***@someserver.com xterm -e /usr/binksh -c ./.remoteprofile

The command logs me into someserver.com, starts an xterm and
runs .remoteprofile that dots in a profile. It uses trusted X11
forwarding to automatically display the xterm in my local X display.

Or do something like start emacs on the remote server and have it show
on my local X display.

Or do crontab -e and have it open emacs in my local X display to edit
the crontab.

I have tried playing with open_x11_channel but it never seemed to work.

Brent

Loading...