SSH connection to the server, using X Windows graphics program

Source: Internet
Author: User

Local Machine A, if you want to use a graphics program on server B,


Ensure that X Windows is running on machine B, that is, the graphic interface.

Of course, a also needs a graphical interface.

So when a connects to B and runs a graph program on B, such as Wireshark,

Even if Wireshark is not installed on machine

All traffic of Wireshark graphic interface is transmitted to machine A through SSH.

The steps are as follows,

1. Open/etc/ssh/sshd_config on B, and add
X11forwarding Yes

2. Open ~ /. Ssh/config, add
Forwardx11 Yes

3. Restart SSH
#/Etc/init. d/ssh restart

4. Connect A to server B
Wzj @ :~ $ Ssh-x B

5. Running Wireshark
Wzj @ B :~ $ Sudo Wireshark

Now, all the graphic interface data is transmitted from B.

6. or directly on machine

Wzj @ :~ $ Ssh-x B "gkrellm"

Gkrellm is a system monitoring software

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.