Xming Vs ssh connect to RHEL server from Windows machine | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Xming Vs ssh connect to RHEL server from Windows machine

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-12-2013
RHCE RHCE is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 27 August 2014, 8:01 AM EDT
Posts: 76
Thanks: 11
Thanked 0 Times in 0 Posts
Xming Vs ssh connect to RHEL server from Windows machine

I am able to connect a RHEL server from my Windows machine using Putty (via ssh). My question is what is the advantage of using Xming instead of Putty? Is it that Xming would enable a graphical connect from the Windows machine to RHEL server?

I hope my question is clear that what is the advantage of using Xming over Putty.

Please revert with the reply to my query.

Regards
Sponsored Links
    #2  
Old 02-12-2013
chilinski chilinski is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 24 June 2014, 10:46 AM EDT
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
XMing allows you to run graphical applications from a remote machine. It typically uses Putty for the ssh connection. You can build launchers that launch a specific windowed application and put those on the windows desktop as shortcuts. It works with 64-bit Windows operating systems.
Sponsored Links
    #3  
Old 02-12-2013
RHCE RHCE is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 27 August 2014, 8:01 AM EDT
Posts: 76
Thanks: 11
Thanked 0 Times in 0 Posts
Thanks for your answer. What is the reason that Putty does not support a graphical connect? Because, it does not show a graphical connect even if give a use ssh -X option.
    #4  
Old 02-12-2013
chilinski chilinski is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 24 June 2014, 10:46 AM EDT
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
It may be that you don't have the display variable set up on the linux side.

When I want to use the Sun Java Directory Server on my LDAP server, I ssh to the machine and run this little script:


Code:
#! /bin/bash
#This little script reads the ipaddress of the session that just logged
#in via SSH and sets up the xwindows display. Exceed must be running
#on the local terminal first.

echo "Do you have Exceed or Xming running? (y or n) and Enter"
read response
if [ "$response" == "y" ]; then
ip_addr=${SSH_CONNECTION%% *}
DISPLAY=$ip_addr:0.0
export DISPLAY
/var/mps/serverroot/startconsole
fi

This sets the DISPLAY variable based on the ip from which you connnected. The linux box needs to know where to send the display based on the DISPLAY variable. In my script, after the variable is set, it runs the startconsole program. This is on a Solaris system; on a normal linux system Xterm is usually used.

So, typically, you would ssh to the box, set the DISPLAY and then run the program you want on the Linux machine. Does that make sense?

Moderator's Comments:
edit by bakunin: PLEASE! My supply of CODE-tags is already running low as i have to give them away the whole day long. Please use your own CODE-tags for your code (not Italic-tags) so that mine last a little longer. This code tag video shows you how. Thank you.

Last edited by bakunin; 02-13-2013 at 11:34 AM..
Sponsored Links
    #5  
Old 02-12-2013
lupin..the..3rd lupin..the..3rd is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 19 May 2014, 12:37 PM EDT
Posts: 105
Thanks: 19
Thanked 10 Times in 9 Posts
Xming is an X11 server for Microsoft Windows. Putty is an SSH client. Two different softwares, with different purposes.

If you check the "Enable X11 forwarding" option in Putty, it will allow the remote UNIX server to display X11 GUI programs on your local PC, over the ssh tunnel.... but those X11 gui programs will need an X11 server to connect to; that's Xming.

FYI we use Putty and Xming to manage all our production UNIX and Linux servers at work, they are a nice combination and work very reliably.

Tip: When you start Xming, don't start it using the "Xming" shortcut. Instead, use the "Xlaunch" shortcut, and be sure to check the box for "No Access Control".
Sponsored Links
    #6  
Old 02-12-2013
chilinski chilinski is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 24 June 2014, 10:46 AM EDT
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by lupin..the..3rd View Post
Tip: When you start Xming, don't start it using the "Xming" shortcut. Instead, use the "Xlaunch" shortcut, and be sure to check the box for "No Access Control".
I could not get the launcher to work at all with Solaris 10. That's why I ended up creating the script. Do you have it working to a Solaris machine, perchance?
Sponsored Links
    #7  
Old 02-12-2013
lupin..the..3rd lupin..the..3rd is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 19 May 2014, 12:37 PM EDT
Posts: 105
Thanks: 19
Thanked 10 Times in 9 Posts
Quote:
Originally Posted by chilinski View Post
I could not get the launcher to work at all with Solaris 10. That's why I ended up creating the script. Do you have it working to a Solaris machine, perchance?
Do not use the launcher to start a unix program. Use the launcher only to start the X11 server on your Windows PC. Then ssh to your server using Putty, and launch the GUI software from the command line. Xclock or Xlogo is a good lightweight GUI program you can test with. This will allow you to see any error messages that your program may throw, so that you can troubleshoot.

Xlaunch can create Windows shortcuts, so that you don't have to manually ssh in and start a program, but you have to get it working first, or you won't know where the problem is.

We don't have any Solaris here, it's all HP-UX and RHEL. That shouldn't matter though, since we're talking about standardized networking protocols, X11 and ssh, and should work identically on any unix-like system.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Graphically connect RHEL server from Windows 7 Professional RHCE Red Hat 1 02-12-2013 04:30 AM
Steps to connect linux (Ubuntu) machine from windows 7 diehard Ubuntu 1 05-08-2012 01:24 AM
How to mount a Files System where RHEL is installed on a Sun server Machine.. sankasu Solaris 2 08-03-2009 08:24 AM
SSH into a linux machine from a windows machine lassimanji Shell Programming and Scripting 4 04-29-2009 01:48 PM
Connect from Windows Using SSH aldowsary AIX 12 08-07-2005 03:12 PM



All times are GMT -4. The time now is 07:01 PM.