LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   run X apps in ssh (https://www.linuxquestions.org/questions/linux-general-1/run-x-apps-in-ssh-558063/)

jaymoney 05-31-2007 01:28 PM

run X apps in ssh
 
I was wondering if there was any way to run X applications through a ssh session. I connect to my Ubuntu machine through Putty on a XP machine.

pljvaldez 05-31-2007 01:34 PM

Yes. To use it through ssh, you need to have an X environment installed on windows. I believe there are a couple of commercial x servers for windows (Xwin32 is the one that comes to mind). I think you can also use Cygwin on windows.

Personally, I use VNC. But I'm not sure how secure it is since it's just on my local home net and I'm not too concerned about the security.

jaymoney 05-31-2007 02:33 PM

I followed a tutorial how to set up Cygwin to run with Putty here.

Now when I try to open an application I get the error

Code:

Gtk-WARNING **: cannot open display:

wendea 05-31-2007 03:02 PM

yes you are able to run x apps through ssh - I cant remember how though.

www.google.com :P

jaymoney 06-01-2007 01:09 PM

I figured out what the problem was. I never restarted sshd after enabling X11Forwarding.


All times are GMT -5. The time now is 10:37 AM.