How to enable X port forwarding with ssh

2006-01-23 Thread Juraj Fedel
While using ssh on local network (actualy qemu virtual machine)
I have hard time starting X application on virtual machine and
let it show window on host X window. Starting

ssh -X

does not help, nor does following content of ~/.ssh/config on local
computer make any difference:

Host *
ForwardX11 yes

In both cases I can see this message when passing -v option
debug1: Requesting X11 forwarding with authentication spoofing.
and when I try to start xclock I get error:

Error: Can't open display:

So how do I enable X port forwarding?
Juraj


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How to enable X port forwarding with ssh

2006-01-23 Thread Edward Shornock
On Mon, Jan 23, 2006 at 01:49:52AM +0100, Juraj Fedel wrote:
 While using ssh on local network (actualy qemu virtual machine)
 I have hard time starting X application on virtual machine and
 let it show window on host X window. Starting
 
 ssh -X
 
 does not help, nor does following content of ~/.ssh/config on local
 computer make any difference:
 
 Host *
   ForwardX11 yes
 
 In both cases I can see this message when passing -v option
 debug1: Requesting X11 forwarding with authentication spoofing.
 and when I try to start xclock I get error:
 
 Error: Can't open display:
 
 So how do I enable X port forwarding?

Have you added
X11Forwarding yes
to /etc/ssh/sshd_config, then restart the ssh service?  That works for
me...


signature.asc
Description: Digital signature


Re: How to enable X port forwarding with ssh

2006-01-23 Thread Leonid Grinberg
Yeah, you need to enable it in /etc/ssh/sshd_config
Then, use ssh -X host.domain -l username
(note: it has to be enabled on both sides, and you actually have to
have X on both sides.)

On 1/23/06, Edward Shornock [EMAIL PROTECTED] wrote:
 On Mon, Jan 23, 2006 at 01:49:52AM +0100, Juraj Fedel wrote:
  While using ssh on local network (actualy qemu virtual machine)
  I have hard time starting X application on virtual machine and
  let it show window on host X window. Starting
 
  ssh -X
 
  does not help, nor does following content of ~/.ssh/config on local
  computer make any difference:
 
  Host *
  ForwardX11 yes
 
  In both cases I can see this message when passing -v option
  debug1: Requesting X11 forwarding with authentication spoofing.
  and when I try to start xclock I get error:
 
  Error: Can't open display:
 
  So how do I enable X port forwarding?

 Have you added
   X11Forwarding yes
 to /etc/ssh/sshd_config, then restart the ssh service?  That works for
 me...





Re: How to enable X port forwarding with ssh

2006-01-23 Thread Greg Norris
On Mon, Jan 23, 2006 at 05:25:39AM -0800, Leonid Grinberg wrote:
 Yeah, you need to enable it in /etc/ssh/sshd_config
 Then, use ssh -X host.domain -l username
 (note: it has to be enabled on both sides, and you actually have to
 have X on both sides.)

More specifically, you need to ensure that xauth (from the xbase-clients 
package) is installed on the ssh server.  It doesn't require a complete 
X installation.


signature.asc
Description: Digital signature