My remote Linux host uses CentOS 5.5. in Windows, I have been using Putty/Poderosa ssh to log on to the remote host. I have been wondering whether to use tkdiff, gvim for putty terminal, emacs and other graphic interfaces are inconvenient. Today I learned how to use putty + xming.
1. X of SSH allowed on the CentOS host
# Vi/etc/ssh/sshd_config
Uncomment this line -- manually add it if this line does not exist:
X11Forwrding yes
2. Install Xming:
Xming is an open-source X Server.
Home: http://www.straightrunning.com/XmingNotes/
SourceForge page: http://sourceforge.net/projects/xming/
The latest version is 6.9.0.31http: // sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download.
After the installation is complete, run XLaunch. Use the default value to generate an initial configuration file. Remember the number in the displayed "Display number". The default value 0 is used here.
After it is started, an "X" icon will appear in the tray area. This indicates that Xming is running. Hover the mouse over it to see the currently used "Display number ".
3. Putty or Pietty installation:
To the official Putty website http://www.chiark.greenend.org.uk /~ Sgtatham/putty/
Http://www.chiark.greenend.org.uk /~ Sgtatham/putty/download.htmldownload putty.exe
Run PuTTY. On the configuration page, select "Connection-SSh-X11", select "Enable X11forwarding", and enter the number in "display number" in the previous step in "X Display location", which is displayed on the local machine, therefore, you must enter "localhost: 0 ".
You can also use Pietty: http://ntu.csie.org /~ Piaip/pietty/
Then save it to Defalut Setting in the session.
3. Then, log on to the Centos host on the putty terminal and run gedit on the command line to view the graphic interface on the desktop on windows.
This article from the Linux community website (www.linuxidc.com) original link: http://www.linuxidc.com/Linux/2011-09/42340.htm