Then, test the xclock or xterm command to see x11 forwarding in action. Then, open a fresh PuTTY session, and use a private key or password-based authentication per your organization setup. Step 3: Configure putty and Xming to perform X11 forwarding connect and verify X11 forwarding To restart ssh service if you changed the value in /etc/ssh/sshd_config:Īmazon Linux 2, RHEL 8 and SUSE Linux OS: You should see similar output as the following: $ sudo cat /etc/ssh/sshd_config |grep -i X11Forwarding To enable X11 Forwarding, change the “X11Forwarding” parameter using vi editor to “yes” in the /etc/ssh/sshd_config file if either commented out or set to no. $ sudo apt install x11-apps Step 2: configure X11 forwarding To install X11 related packages and tools: So, I skipped installing this package, which has xclock and I used only xterm to test the X11 forwarding. Note: The xorg-x11-apps package has been provided in the CodeReady Linux Builder Repository for RHEL8. Installing xclock or xterm packages are optional as this is installed in this post to test the X11 forwarding using xclock or xterm commands. Install X11 packages with following command based on your operating system release and version: You may need sudo permission to run X11 forwarding commands as a root user in order to complete the setup.Ĭonnect to your EC2 instance using SSH client, and perform following setup as needed.In order to securely configure or install PuTTY, refer to the section Configuring ssh-agent on Windows in the blog post Securely Connect to Linux Instances Running in a Private Amazon VPC.Install tools such as PuTTY and Xming on the Windows-based bastion host from which you want to SSH to Linux EC2 host and X11 forwarding.This is to avoid any high latency in X11 forwarding during your application installations. I recommend having bastion hosts in the same Availability Zone or Region as the EC2 Linux hosts that you plan to connect and forward X11 to. You can use any OS-based systems as a bastion host as long you have corresponding client tools installed or X11 supported by that OS. If not, please configure a bastion host using Windows operating system with needed SSH access via port 22 to EC2 instance running linux-based operating systems. This OS must have access to the EC2 machines running Linux such as RHEL, Amazon Linux, SUSE Linux, and Ubuntu servers.
0 Comments
Leave a Reply. |