X11 Setup with SSH Linux


PROCESS OVERVIEW:

In order to obtain the ability to interact with an X11 GUI remotely, we will follow these general steps:
  1. Ensure that the foundational X11 packages are installed
  2. Ensure that OpenSSH server is configured to forward X11 connections
  3. Configure a local X11 server on our workstation (You can use MobaXterm too)
  4. Configure our ssh application to forward X11 requests ( I'll use MobaXterm, however, Xming can also be installed at local machine.)
  5. Test with a simple application
  6. Configured authentication if user changes are needed.


1. # yum install xorg-x11-xauth xterm xorg-x11-apps -y

2. # cat /etc/ssh/sshd_config | grep -i X11
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no

# service sshd restart
Redirecting to /bin/systemctl restart sshd.service

3. Xming  or MobaXterm need to be installed on the workstation.

4. Try to connect the server by mentioning the hostname on MobaXterm. However, for putty you need to check "X11 forwarding" under SSH settings.


5# /usr/bin/xauth
Using authority file /root/.Xauthority
xauth> exit

#xclock
#xeyes

From Putty: We need to set the display as below:

# xauth list
server:10  MIT-MAGIC-COOKIE-1  5a5f2e0832b24f8c3391614cec512363
# export DISPLAY=server:10
# xclock
Warning: Missing charsets in String to FontSet conversion


6. Suppose We need to run the X11 for a particular user - webadmin

[root@server~]# su - webadmin
Last login: Mon Sep  9 14:59:35 IST 2019 from vp-1c2oadc062.1dc.com on pts/0
[webadmin@server~]$ xclock
Error: Can't open display:
[webadmin@server~]$ xauth list
xauth:  file /home/webadmin/.Xauthority does not exist

# cp .Xauthority /home/webadmin/  (from root)
#chown webadmin:webadmin /home/webadmin/.Xauthority (from root)
#[webadmin@server~]$ xauth
Using authority file /home/webadmin/.Xauthority
xauth> exit

[webadmin@server~]$ xauth list
server:10  MIT-MAGIC-COOKIE-1  8d2414ef1216a5ef3b276866c490311c
export DISPLAY=server:10
[webadmin@lipvap1077 ~]$ xclock
Warning: Missing charsets in String to FontSet conversion
[webadmin@lipvap1077 ~]$




9 comments:

  1. Such a Nice post. Thanks for Awesome tips Keep it up
    mobaxterm-crack

    ReplyDelete
  2. Great set of tips from the master himself. Excellent ideas. Thanks for Awesome tips Keep it up
    mobaxterm-crack
    teamviewer-crack
    ultramixer-crack
    faststone-capture-crack

    ReplyDelete
  3. Thanks for sharing the crack but you need to update this version because here new version Available below;

    https://licensedinfo.com/fastkeys-crack/

    ReplyDelete
  4. Thanks for sharing the crack but you need to update this version because here new version Available below;

    https://licensedinfo.com/mobaxterm-crack/

    ReplyDelete
  5. After looking through a few blog articles on your website,
    we sincerely appreciate the way you blogged.
    We've added it to our list of bookmarked web pages and will be checking back in the near
    future. Please also visit my website and tell us what you think.
    Great work with hard work you have done I appreciate your work thanks for sharing it.
    CrackBins Full Version Softwares Free Download
    MediaHuman YouTube Crack

    ReplyDelete
  6. My response on my own website. Appreciation is a wonderful thing...thanks for sharing keep it up. MobaXterm Pro Crack

    ReplyDelete
  7. I read this article! I hope you will continue to have such articles to share with everyone! thank you! You can Visit my website
    https://icracker.net/https://icracker.net/

    a4scandoc crack

    ytd video downloader pro crack

    wondershare pdfelement pro crack

    ReplyDelete
  8. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. suripc.com I hope to have many more entries or so from you.
    Very interesting blog.
    MobaXterm Professional Crack

    ReplyDelete

Installation of Jenkins on Linux and Deployment NGINX through Jenkins

Installation of Jenkins: [root@worker1 ~]# useradd -c "jenkins user" jenkins [root@worker1 ~]# passwd jenkins Changing passw...