LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-25-2012, 11:19 AM   #1
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Rep: Reputation: 15
X11 over SSH - not working


Hi,

I have a server I connect to remotely using SSH.
Recently, I installed Xorg successfully. I ran startx from a KVM console and it worked like charm, everything opens fine.
The problem is with SSH. I just cannot get X11 forwarding to work properly.

I have sat up sshd_config:
Code:
AllowAgentForwarding yes
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
I have sat up my ssh config file (ssh clone for win32)
Code:
ForwardAgent yes
ForwardX11 yes
Also used PuTTY, sat up "Enable X11 forwardin",
and I used display id:
Code:
localhost:10
On PuTTY, $DISPLAY gives me localhost:10.0
On the SSH clone, no $DISPLAY exported at all.

When I SSH in, I type in xinit:
Code:
X.Org X Server 1.11.3
Release Date: 2011-12-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.1.5-1-ARCH x86_64
Current Operating System: Linux myhostname 3.2.1-1-ARCH #1 SMP PREEMPT Fri Jan 13 06:50:31 CET 2012 x86_64
Kernel command line: root=/dev/sda5 ro vga=792 video=matrox:vesa:440
Build Date: 17 December 2011  09:17:41AM

Current version of pixman: 0.24.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 25 12:16:27 2012
(==) Using config directory: "/etc/X11/xorg.conf.d"
(EE) MGA(0): [drm] Direct rendering only supported with G200/G400/G450/G550.
(EE) Winbond Electronics Corp Hermon USB hidmouse Device: failed to initialize for relative axes.
However, nothing appears but this text and the inability to type any command.

I'm almost crying... I can't get it to work. It's really frustrating... I read up much about it...

Since many of you know alot more about Xorg and SSH, I call for help
Any answer will be gratly appreciated.

I'm using Arch Linux.

Thanks,
BlueSpirit

Last edited by BlueSpirit; 01-25-2012 at 11:23 AM.
 
Old 01-25-2012, 11:25 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I run X over SSH without any problems. But I don't run a complete desktop/WM over it, I don't see the need, I already have X running on the connecting machine. I just start the applications I want to use. For example, if I want to run a VM that exists on my workstation I connect with my laptop to my workstation using
Code:
ssh -Y workstation
and then launch Virtualbox with a simple
Code:
virtualbox
Works without problems, also with other applications.
 
Old 01-25-2012, 12:30 PM   #3
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
Yeah, it's really weird.
I have other infos... it seems the display localhost:10.0 is wrong...
When I run xclock, it says
Code:
Error: Can't open display: localhost:10.0
However,in sshd_config, I still see
Code:
X11DisplayOffset 10
 
Old 01-25-2012, 06:46 PM   #4
BlueSpirit
Member
 
Registered: Jun 2006
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: 15
I got it...
Since I was running on Windows, I thought PuTTY/SSH would do the work of opening the windows itself and the forwarding work. That was a mistake.

To run X11 forwarding on Win32, you need an Xserver port, which is named Xming.
Run Xming and you'll be fine.

Bail out.
 
  


Reply



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
Need help forwarding X11 via SSH buckwheat12 Linux - Networking 15 05-02-2007 03:08 PM
SSH and X11 using Cygwin/X rizhun Linux - Software 4 09-27-2006 07:38 AM
x11 through ssh Atmchicago Linux - Networking 4 04-23-2006 06:40 PM
ssh, X11 blackzone Linux - Networking 1 08-05-2004 06:07 AM
x11 with ssh apax Linux - Newbie 5 09-06-2003 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:22 PM.

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