[paramiko] Howto implement client-side X11 forwarding?
Eric Noulard
eric.noulard at gmail.com
Mon Mar 24 03:24:22 PDT 2008
Hi all,
I did already ask this on launchpad
(https://answers.launchpad.net/paramiko/+question/27775)
but since I don't know whether if it's effectively used or not
I may cross-post here.
>>>>>>>>>>>
I do use paramiko as client SSH using
SSHClient and SSHShell.
As soon as I do call SSHShell.request_x11()
I do get
File "/var/lib/python-support/python2.4/paramiko/channel.py", line
367, in request_x11
self._wait_for_event()
File "/var/lib/python-support/python2.4/paramiko/channel.py", line
1062, in _wait_for_event
raise e
SSHException: Channel closed.
My need is to be able to:
SSHClient.invoke_shell('vt100',80,300)
then
SSHShell.request_x11()
then
SSHShell.send(/usr/bin/xterm)
Using this I want the remote xterm command to access
the local X11 server in order to display the xterm window.
My local X11 server accept X11 forward.
At least the following command
ssh me at remotehost /usr/bin/xterm
works as expected.
I'm certainly missunderstanding the way X11 forwarding work
would anybody help me with an example on how to do that?
--
Erk
More information about the paramiko
mailing list