Xming is a open source X server that runs under windows. Install the Xming server on your local machine and run the Xming server on your local machine. An icon on the task bar will show its running.
http://sourceforge.net/projects/xming/
1- Open putty to start ssh session. Make sure to use the X11 protocol.
2- Use your credential to reach shell.
# cd /etc/ssh ⤶
# vi sshd_config ⤶
X11farwarding yes
X11Display 10
X11UseLocalhost yes
3- To take effect, you might need to stop and start the sshd daemon as
# stoptsrc -s sshd; startsrc -s sshd ⤶
4- Start and launch the Xming. The "trick" with Xming is to FIRST start it via the XLaunch (icon or command), NOT the Xming command/icon. That's because XLaunch allows you to check "No Access Control" which tells Xming to allow other IP's in. Starting Xming with the Xming command, causes the default "only allow in local host" mode.
5- Export your display to local machine. Make sure your $DISPLAY is same user you logged in from putty, if not make it same.
Check your local machine IP address using ipconfig in windows or who command in Unix server
$ export DISPLAY=localhost:10.0
In my case my local IP is
# export DISPLAY=192.168.3.107:0.0
# xterm ⤶ Try opening a graphical editor.
Note: if this does not starts, try to exit and login again through putty session.
You can try xclock, xcalc, startx
No comments:
Post a Comment