Saturday, May 16, 2020

How to enable X11 forwarding for Linux in Oracle Cloud (OCI)

Make sure following parameters are set correctly in "/etc/ssh/sshd_config":
X11Forwarding yes
X11UseLocalhost no

[root@fmw12c ~]#  yum install xorg-x11-xauth

Restart sshd

[root@fmw12c ~]# systemctl restart sshd


Software like "MobaXterm" can set the Display automatically once above settings are correct.


[oracle@fmw12c ~]$ xdpyinfo
name of display:    10.0.1.3:10.0
version number:    11.0
vendor string:    Moba/X
vendor release number:    12004000
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
....

Reference: https://aws.amazon.com/blogs/compute/how-to-enable-x11-forwarding-from-red-hat-enterprise-linux-rhel-amazon-linux-suse-linux-ubuntu-server-to-support-gui-based-installations-from-amazon-ec2/

No comments:

Post a Comment