Use SSH to implement X11 forwarding

Source: Internet
Author: User
Tags ssh server
Article Title: Use SSH to implement X11 forwarding. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

There are multiple ways to connect to a remote server or workstation. You can use NoMachine's NX server or GPL solution FreeNX, other tools are similar to RealVNC or VNC. remote control software allows you to view and interact with desktop applications over the network.

One way to enhance communication security is to use SSH Through the X11 tunnel or port forwarding technology. SSH is developed to replace insecure telnet, ftp, rlogin, and rsh software, freeNX can use this technology perfectly. In this article, I will show you how to use SSH to implement X11 forwarding without any additional software. In addition, I will explain how to run Linux applications on the windows xp client using PuTTY and X-Deep/32.

To inspire you, I will explain what is needed in a short section. I will remotely access two machines:
OpenSUSE 10.2 running KDE and Debian 4.0 running Gnome

Client machines I use OpenSUSE including the ssh client and windows xp using Putty. From the perspective of ssh, remote machines are servers and local machines are clients. The preparation of the experiment environment is as follows:

Step 1: Prepare an ssh server

First, you must install the ssh software package on your server. I will use the OS release to provide the OpenSSH software package. Check how to find and install the rpm package in the two releases, in some cases, it is already installed on the server (it may be installed as a standard package when installing the system ).

If you build software from the source code and confirm that X Forwarding is supported during compilation, the binary software package of ssh 3.2 or later includes runtime X detection.
At the same time, make sure that the following line exists in your/etc/ssh2/sshd2_config file:
AllowX11Forwarding yes

Run the following command to start the sshd service:
/Etc/init. d/sshd start
Service sshd start

[1] [2] [3] Next page

Related Article

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.