I am trying to start and X11 connection from my remote Linux server to my Local Windows machine.
I've downloaded Xming portable and if I start an ssh connection to my Linux machine and starts Firefox it is passed to Xming and shown on my Windows machine.
I have now tried to achieve the same in python. But I do not think I understand it correctly.
I'm using the following code
import paramiko
import time
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('server-1', username='me', password='xxxxxxx')
stdin, stdout, stderr = ssh.exec_command("firefox")
t = ssh.get_transport ()
chan = t.open_session ()
print(chan.request_x11())
print(stdout.readlines(), stderr.readlines())
time.sleep(100)
only to get the following error:
Error: GDK_BACKEND does not match available displays
I've also read that python it self can start and Xll session. But for now I only need it to be forwarded to my Xming server.
I only understand the very basic of what an X11 connection does and all the examples I've seen here is for when the python script is running on Linux.
Regards