Log on to Linux through SSH on Windows and use the graphical interface

Source: Internet
Author: User
Tags xming

 

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.