First all of you need to install Xserver in your local box. Here is the download location for Windows. Here Xserver will be installed using Xming.
Location : http://sourceforge.net/projects/xming.
After downloading install the Xming server in your localbox and run it with option ":0 -clipboard -multiwindow -ac". To do this, right click the short cut of Xming -> go to properties -> and in target its should look similar to this "C:\Program Files\Xming\Xming.exe" :0 -clipboard -multiwindow -ac (here double quates are part of the string itself), depending on the location of Xming installation path may change.
On Redhat / Linux machine has feature called X11Forwarding, depending on the value of this parameter it enables or disables the display of graphics on the server.
On Redhat / Linux machine
For example,
- login on Linux/BSD system called myserver.mydomain.com
- Open /etc/ssh/sshd_config file using text editor:
- # vi /etc/ssh/sshd_config
- Find out parameter X11Forwarding and set it to yes:
- X11Forwarding yes
- Save file & exit shell prompt
- Restart sshd service under Debian Linux:
- # /etc/init.d/ssh restart
- Alternatively, if you are using Fedora / Red Hat Linux restart sshd:
- # /etc/init.d/sshd restart
Client Side Setting on Windows Machine
For connecting to Redhat Linux box I am using the most popular SSH client putty. Below are the steps to configure putty on Windows machine.
- Run the putty.exe
- provide Host Name (or you can use IP address of host machine as well
- Select SSH as Connection Type
- Port should be 22 default
- Enter again the same name as you entered in Hostname in to Saved Session Input box.
- In Connection Category, Find out the Connection Tree. In SSH, expand it and you will see "Enable X11 Forwarding"..
- Enable X11 Forwarding by selecting the check box
- X Display location should be set to localhost:0
- Save this entire information as a session by click on Save button
- Now start the Xming Server on location machine
- Now connect to the Redhat / Linux Machine using saved session from putty
- And to verify that Graphics are enable use this command xclock &
- You should be able to new graphical window coming up.
No comments:
Post a Comment