Friday, 17 February 2017

How to use Putty to remotely open GUI Application from windows?

Remote connections can be established with system over a network through SSH (secure shell) easily, there are lot of SSH tools available by using which we can login, perform actions or send commands to another system remotely through this connection on the command-line. The only disadvantage of using SSH in a terminal is we cannot do is launch a GUI application for viewing content present in the remote node. 

But this disadvantage can be easily solved by making use of "putty", a remote login application which cannot only be used to login to a remote node, but also launch GUI applications. 
Today we will see how to launch GUI application using Putty.

For launching GUI application, we need to follow few steps considering Putty is configured properly with the remote system.

1. Ensure that the foundational X11 package are installed 

yum install xorg-x11-xauth xterm

2. Ensure that openSSH server is configured properly to forward X11 connections. On RHEL servers, verify the following lines /etc/ssh/sshd_config

X11Forwarding yes

If any changes made, then restart ssh daemon by issuing command - sudo /etc/init.d/sshd restart

3. Configure a local X11 server on your workstation. For our demo, we will be using Xming server.

After ensuring all the configuration, follow the below steps -

4. Launch Xming server by clicking config.xlaunch



5. Launch Putty. Enter the Host Name and Port




6. Expand the Connection and SSH option and select "X11". Ensure that "Enable X11 forwarding" is checked.

7. Click on Open and Login to the remote SSH by providing username and password


8. Once you successfully logged in, test the UI.


9. If the configuration is fine, you'll be able to see the xclock.



No comments:

Post a Comment