X-Terminal over SSH Woes

Gerard J Snitselaar snits at snitselaar.org
Wed Aug 23 20:21:15 MST 2006


On  0, Mark Phillips <mark at phillipsmarketing.biz> wrote:
> I cannot figure out what is wrong. Everything I have read on the net and in 
> O'Rreilly's SSH book say I am doing it right, but it doesn't work!
> 
> Machine - monkey
> Debian stable
> /etc/ssh/ssh_config has
>    ForwardX11 yes
>    ForwardX11Trusted no
> 
> Machine - stingray
> Debian stable
> kde desktop is running
> /etc/ssh/ssh_config has
>    ForwardX11 yes
>    ForwardX11Trusted no
> 

What do you have in /etc/ssh/sshd_config ? It has to be enabled in the server
config as well as your client.


> I can ssh from monkey to stingray (and vice versa)
> 
> When I try ssh -X stingray from monkey, I get Error: Can't open display.
> 
> In debug mode, I see the following:
> debug1: Authentication succeeded (keyboard-interactive).
> debug1: channel 0: new [client-session]
> debug1: Entering interactive session.
> debug1: Requesting X11 forwarding with authentication spoofing.
> Linux stingray 2.6.8-2-386 #1 Tue Aug 16 12:46:35 UTC 2005 i686 GNU/Linux
> 
> mark at stingray:~$ echo $DISPLAY
> 
> mark at stingray:~$ xeyes
> Error: Can't open display:
> mark at stingray:~$ exit
> debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
> logout
> debug1: channel 0: free: client-session, nchannels 1
> Connection to stingray closed.
> debug1: Transferred: stdin 0, stdout 0, stderr 32 bytes in 87.1 seconds
> debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.4
> debug1: Exit status 1
> 
> FWIW, I can do "X -query stingray" from monkey and get the gdm login
> and my kde desktop from stingray to monkey.
>  
> What am I doing wrong?
> 
> Thanks!
> -- 
> Mark Phillips
> Phillips Marketing, Inc
> mark at phillipsmarketing.biz
> 602 524-0376
> 480 945-9197 fax
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


More information about the PLUG-discuss mailing list