I type ssh -X name@blah.edu and asks for a password, I type it in and get logged in.
name@blah.edu:~$ program.py
then nothing happens, when it should actually pop up. Why is this happening and how do I solve it?
|
I type
then nothing happens, when it should actually pop up. Why is this happening and how do I solve it? |
||||
|
It is just as you do in your PC, To view the program code, |
|||||||||||||
|
|
It sounds like your DISPLAY variable is getting set somewhere. When I SSH into my machine from my phone (with X forwarding) and run the following:
Though it's not a guarantee, X forwarding tends to use high display numbers. If your You can either guess and over-override the
Of find where you're setting display in your local bash files. I should add that it's possible to turn off X forwarding in the SSHd settings ( |
|||||
|
|
The problem is that the SSH connection is not forwarding X11 commands over the connection. If the machine you are using to connect is running Linux (or another OS with X) then simply pass the If you are connecting with Microsoft Windows, you will need a program that can translate X11 commands into Windows API commands. Try looking at XMing or cygwin. |
|||||||||||
|
|
You probably need to enable X forwarding in your SSH server's configuration file,
If you don't have access to this file, I'm afraid you will have to ask your sysadmin to enable it. |
|||
|
|
|
You may also need to add/uncomment the following line from your X11Forwarding yes The -X flag is useless without this. |
|||
|
|
|
Oliver's solution is the way to go if you want to forward X, but understand that this may be bandwidth-intensive. An alternate solution is to use a command line editor like |
|||
|
|
echo $DISPLAYprint when you run it in your ssh session? – karthick87 Dec 18 '10 at 20:04