Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-14-2006, 10:57 PM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 497

Rep: Reputation: 30
Cool Linux Graphical mode with SSH

Friends ,

From windows machine it is possible to enter a Linux Machine from a Windows machine using SSH . But using SSH , we can use the text editor , don't get the X window .

Now my question is , is it possible to enter the Linux graphical mode using SSH ?

Old 06-15-2006, 12:06 AM   #2
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
I heard it;s possible but I was never able to do it.
Old 06-15-2006, 12:34 AM   #3
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Short answer is no. Long answer is yes, you can forward X connections over SSH but you don't get a full desktop environment or anything like that, just single apps and you need to be running a X server on the local computer as well.

Best suggestion is FreeNX to use a GUI over a network.
Old 06-15-2006, 02:09 PM   #4
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
The most common way would be to use VNC. Install a vnc server on the Linux machine, see:

Once you've got that setup you can ssh into the machine using putty to tunntel VNC over ssh like this:

Where 5900 is the port that VNC runs on on your Linux machine. You can now connect to it using a VNC viewer on the Windows machine with the address localhost:0, since you've tunnelled VNC over ssh. Note that VNC can support multiple desktops and it may actually be on desktop 1, ie port 5901.
Old 06-15-2006, 07:48 PM   #5
LQ Newbie
Registered: May 2006
Distribution: Kanotix, Debian, openSUSE, Ubuntu
Posts: 11

Rep: Reputation: 0
The way i did this was to install cygwin on my windows machine.... install the xwindows port to cygwin. Then used ssh from cygwin using -X option for x11 forwarding.

Its a bit cumbersome to setup, but once i got it working it was sweet.
Old 06-15-2006, 08:15 PM   #6
Registered: Jun 2005
Location: Athens GR
Distribution: Slackware 10.2
Posts: 43

Rep: Reputation: 15
OK I have dealed with this and I have a clean answer.
VNC is used to get a whole desktop on the network. That means you start a new X server (VNC server). Now if you do that a few times your RAM will be exhausted. In my occasion this is what i wanted so it doesn't matter.
However it is possible to start graphical applications through an SSH connection. All you have to do is enable X11 forwarding:
uncomment/edit the line
ForwardX11 yes
in /etc/ssh/ssh_config
From the client side you need an implementation of X which exists in almost every modern UNIX variant.
If you are on a Windows machine there are many X implementations for MS Windows AFAIK and some of them are freeware so you wan't have to pay for it. I guess Cygwin does the trick too but as you said it's a bit cumbersome!

PS: You should start ssh like that ssh -X [options]
Old 06-15-2006, 08:51 PM   #7
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
Originally Posted by scweej
The way i did this was to install cygwin on my windows machine.... install the xwindows port to cygwin. Then used ssh from cygwin using -X option for x11 forwarding.

Its a bit cumbersome to setup, but once i got it working it was sweet.
This is also terribly slower and less robust than the other methods (VNC).
Old 06-15-2006, 11:01 PM   #8
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
You can try Xming. It's basically a modified cygwin/xserver that lets you tunnel x over ssh.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH connection in graphical mode (X-Server?) max2004 Linux - Networking 12 01-25-2012 06:19 AM
How to start graphical mode in linux 2.4.20-alt6-up? ukrainet Linux - Newbie 2 12-23-2004 10:51 AM
How to Prevent linux running graphical mode aperrin Linux - Software 2 12-20-2004 05:03 AM
problem with linux graphical mode shams Linux - Software 3 02-10-2004 08:07 PM
howto start linux in text mode and not in graphical? ichbinesderelch Linux - General 5 08-20-2003 08:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration