LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   running X applications on remote machine when logged in via ssh (http://www.linuxquestions.org/questions/linux-general-1/running-x-applications-on-remote-machine-when-logged-in-via-ssh-353636/)

servnov 08-15-2005 07:30 PM

running X applications on remote machine when logged in via ssh
 
I want to take machine 1 log in to machine 2 with ssh, and then launch something like firefox on machine 2 and have the display sent to machine 1 (the one i'm at) so i can browse the web, etc. How can I do this?

macemoneta 08-15-2005 08:53 PM

Use the -Y parameter on ssh, or -X on older versions that don't recognize -Y. For example, on machine1, issue the command:

ssh -Y userid@machine2

Any X applications you run on machine2 will then display on your local (machine1) video.

Of course, you must be running an X server on machine1. If machine1 is a Windows system, you must install Cygwin (if you don't already have an X server installed) and start it's X server before you ssh to machine2.


All times are GMT -5. The time now is 07:18 PM.