Networking Forums

Networking Forums > Computer Networking > Linux Networking > Re: Trouble with X11 over SSH on Mandriva 2010.0

Reply
Thread Tools Display Modes

Re: Trouble with X11 over SSH on Mandriva 2010.0

 
 
Cat 22
Guest
Posts: n/a

 
      02-25-2010, 04:08 AM
Kevin the Drummer wrote:

> On my Mandriva 2007.0 system X11 works over SSH. Here's my test
> case that I need to have working.
>
> 1. ssh -f somehost xterm
> 2. 'su' in the new xterm
> 3. run any graphical program from the su'd shell
>
> On the Mandriva 2007.0 system this works fine. On my 2010 system I
> get this error:
>
> Error: Can't open display: localhost:11.0
>
> On both systems my SSH config is set like this:
>
> /etc/ssh/ssh_config: ForwardX11 yes
> /etc/ssh/ssh_config: ForwardAgent yes
> /etc/ssh/ssh_config: ForwardX11Trusted yes
> /etc/ssh/sshd_config: X11Forwarding yes
>
> I've been using X over SSH for a long time, and I've been able to
> get this to work fine on many systems since I started using this
> maybe 10
> years ago. I re-read the FAQs for this. This time I'm stuck.
>
> Anyone have any suggestions?
>
> Thanks....
>

Well, you probably dont have a root desktop running,
which you shouldn't anyway. there is no need.
Make sure you have a desktop running on the target,
ssh over to it as that user (presumably you) then
you should be able to start any graphical program over ssh
from your remote system.
Cat22


 
Reply With Quote
 
 
 
 
unruh
Guest
Posts: n/a

 
      03-02-2010, 08:17 PM
On 2010-03-02, Kevin the Drummer <(E-Mail Removed)> wrote:
> Kevin the Drummer wrote:
>> > On my Mandriva 2007.0 system X11 works over SSH. Here's my test
>> > case that I need to have working.
>> >
>> > 1. ssh -f somehost xterm
>> > 2. 'su' in the new xterm


Why? ssh somehost will take you in in a terminal. From there you can
run a program. No need to open an xterm first ( and slow things down)

>> > 3. run any graphical program from the su'd shell
>> >
>> > On the Mandriva 2007.0 system this works fine. On my 2010 system I
>> > get this error:
>> >
>> > Error: Can't open display: localhost:11.0


Does not sound like x11 forwarding is set up.
do
ssh somehost
echo $DISPLAY

Note that root may not have permission to log onto your X session.


>> >
>> > On both systems my SSH config is set like this:
>> >
>> > /etc/ssh/ssh_config: ForwardX11 yes
>> > /etc/ssh/ssh_config: ForwardAgent yes
>> > /etc/ssh/ssh_config: ForwardX11Trusted yes
>> > /etc/ssh/sshd_config: X11Forwarding yes
>> >
>> > I've been using X over SSH for a long time, and I've been
>> > able to get this to work fine on many systems since I started
>> > using this maybe 10 years ago. I re-read the FAQs for this.
>> > This time I'm stuck.

>
> I ran into an additional problem. The mingettys for my
> pseudo-terminals started spewing "respawning too fast" messages
> upon boot-up. I haven't seen that in over ten years, and tried
> all the usual fixes. Eventually, I reinstalled after saving all
> of my config stuff so I could just copy it all back into /etc.
> That took about two days of on/off work. After putting all the
> same config stuff back now everything works. Certainly, this
> isn't rigorous, but maybe the two problems were related somehow.


So the X now works as well?

>
> Thanks folks....
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11