Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh -Y and ssh -X not working

Reply
Thread Tools Display Modes

ssh -Y and ssh -X not working

 
 
Anthony Campbell
Guest
Posts: n/a

 
      01-05-2006, 11:15 AM
I have a network consisting of a desktop and laptop linked by wireless.
I communicate between them with ssh. With the Y or X switches I can run
X applications on the laptop from the desktop but not the other way
round. If I try to run X applications on the desktop when on the laptop
nothing happens at all - no error message.

I have exactly the same entries for X in /etc/ssh/sshd_config on both and
also for /etc/X11/Xsession.options.

==========================
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
========================


# /etc/X11/Xsession.options
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus


Any suggestions for what else to check?

Anthony


--
Anthony Campbell - (E-Mail Removed)
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews,
on-line books and sceptical articles)

 
Reply With Quote
 
 
 
 
Scott R. Haven
Guest
Posts: n/a

 
      01-05-2006, 12:30 PM
Anthony Campbell wrote:
> I have a network consisting of a desktop and laptop linked by wireless.
> I communicate between them with ssh. With the Y or X switches I can run
> X applications on the laptop from the desktop but not the other way
> round. If I try to run X applications on the desktop when on the laptop
> nothing happens at all - no error message.
>
> I have exactly the same entries for X in /etc/ssh/sshd_config on both and
> also for /etc/X11/Xsession.options.
>
> ==========================
> X11Forwarding yes
> X11DisplayOffset 10
> PrintMotd no
> PrintLastLog yes
> KeepAlive yes
> ========================
>
>
> # /etc/X11/Xsession.options
> #
> # configuration options for /etc/X11/Xsession
> # See Xsession.options(5) for an explanation of the available options.
> allow-failsafe
> allow-user-resources
> allow-user-xsession
> use-ssh-agent
> use-session-dbus
>
>
> Any suggestions for what else to check?
>
> Anthony
>
>


Anthony,

You might see what "DISPLAY" is set to. I've seen cases where it is set
to 0:0 or :0. I think the default for ssh is 10:0.

Also, I'd start with simple apps like xclock or xman. Gnome and KDE
apps can fail for a variety of reasons even if X works properly.


Scott R. Haven
Sr. Systems Engineer
Paisley Systems Inc.
managed services, consulting, and support
www.paisleysystems.com

 
Reply With Quote
 
Anthony Campbell
Guest
Posts: n/a

 
      01-05-2006, 02:00 PM
On 2006-01-05, Scott R. Haven <(E-Mail Removed)> wrote:
> Anthony Campbell wrote:
>> I have a network consisting of a desktop and laptop linked by wireless.
>> I communicate between them with ssh. With the Y or X switches I can run
>> X applications on the laptop from the desktop but not the other way
>> round. If I try to run X applications on the desktop when on the laptop
>> nothing happens at all - no error message.
>>

> You might see what "DISPLAY" is set to. I've seen cases where it is set
> to 0:0 or :0. I think the default for ssh is 10:0.
>
> Also, I'd start with simple apps like xclock or xman. Gnome and KDE
> apps can fail for a variety of reasons even if X works properly.
>
>
> Scott R. Haven
> Sr. Systems Engineer
> Paisley Systems Inc.
> managed services, consulting, and support
> www.paisleysystems.com
>


That was it! Thanks, brilliant. DISPLAY wasn't set at all on the laptop
but was 0:0 on the desktop. I'm actually not sure what it's supposed to
do but I've unset it on both and now it's working fine in both
directions.

Anthony

--
Anthony Campbell - (E-Mail Removed)
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews,
on-line books and sceptical articles)

 
Reply With Quote
 
Scott R. Haven
Guest
Posts: n/a

 
      01-11-2006, 10:02 PM
Anthony Campbell wrote:
> On 2006-01-05, Scott R. Haven <(E-Mail Removed)> wrote:
>
>>Anthony Campbell wrote:
>>
>>>I have a network consisting of a desktop and laptop linked by wireless.
>>>I communicate between them with ssh. With the Y or X switches I can run
>>>X applications on the laptop from the desktop but not the other way
>>>round. If I try to run X applications on the desktop when on the laptop
>>>nothing happens at all - no error message.
>>>

>>
>>You might see what "DISPLAY" is set to. I've seen cases where it is set
>>to 0:0 or :0. I think the default for ssh is 10:0.
>>
>>Also, I'd start with simple apps like xclock or xman. Gnome and KDE
>>apps can fail for a variety of reasons even if X works properly.
>>
>>
>>Scott R. Haven
>>Sr. Systems Engineer
>>Paisley Systems Inc.
>>managed services, consulting, and support
>>www.paisleysystems.com
>>

>
>
> That was it! Thanks, brilliant. DISPLAY wasn't set at all on the laptop
> but was 0:0 on the desktop. I'm actually not sure what it's supposed to
> do but I've unset it on both and now it's working fine in both
> directions.
>
> Anthony
>


Anthony,

You're welcome. I'm glad to know I'm not the only one still using X
over a network.

Scott R. Haven
Sr. Systems Engineer
Paisley Systems Inc.
managed services, consulting, and support
www.paisleysystems.com
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
previously working wireless connection no longer working zapspan Wireless Networks 5 01-17-2010 09:11 PM
Ad hoc connection working, but ICS not working. Any help? Brian O Wireless Networks 6 09-29-2007 03:58 PM
wifi not working on new hp, or not working after live update Dragonx Wireless Networks 1 10-01-2005 11:17 PM
(Wireless) LAN access working. WAN (remote) web access not working! Godffrey Linux Networking 1 01-14-2005 02:20 AM
Kernel-nfs working, plain nfs not working. alw Linux Networking 0 09-23-2003 11:14 PM



1 2 3 4 5 6 7 8 9 10 11