Re: ssh x11 forwarding
- From: Chris <c.petrik.sosa@xxxxxxxxx>
- Date: Thu, 05 Mar 2009 15:53:06 GMT
On Thu, 05 Mar 2009 09:19:22 -0600, Jeannot Lelapin <jeannot.lelapin@xxxxxxx> wrote:
Hello,
The server : FreeBSD 7.0 (without screen) on which i install :
/usr/ports/x11/xauth
/usr/ports/x11-fonts/xorg-fonts
/usr/ports/x11/xhost
/usr/ports/x11/xdm
The configuration file on the server ssh /etc/ssh/sshd_config
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
The configuration file for the client ssh /etc/ssh_config ( depends with the client )
Host *
ForwardX11 yes
The client machine :
- WinXP with Cygwin+Package X ( application X work well ).
soit un powerbook sous MacOS X 10.4.11 ( application X work well with XDarwin).
from one the client machine
ssh XX.XX.XX.XX -l user -X
export DISPLAY=localhost:10.0
xeyes &
X connection to localhost:10.0 broken (explicit kill or server shutdown).
so :
xauth list
xauth: creating new authority file /home/user/.Xauthority
No file /home/user/.Xauthority
xauth generate localhost:10.0 .
xauth: creating new authority file /home/user/.Xauthority
X connection to localhost:10.0 broken (explicit kill or server shutdown).
and 2 files
.Xauthority-c ( empty )
.Xauthority-l ( empty )
so i try another way :
xhost +localhost
X connection to localhost:10.0 broken (explicit kill or server shutdown).
su
xhost +localhost
X connection to localhost:10.0 broken (explicit kill or server shutdown).
I look in the log file, look for on the net and do not find my mistake.
Has anyone an idea ?
Thanks
Jeannot
Also by default the X server doesn't open the port to allow X connections, this has to be done when loading the X server:
http://www.x.org/archive/X11R6.9.0/doc/html/Xserver.1.html
need to remove the option so X listens on port 6000 or else this wont work obviosuly. By default the option -nolisten tcp is used
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.
- Follow-Ups:
- Re: ssh x11 forwarding
- From: Jeannot Lelapin
- Re: ssh x11 forwarding
- References:
- ssh x11 forwarding
- From: Jeannot Lelapin
- ssh x11 forwarding
- Prev by Date: Trademark Infringement!
- Next by Date: Re: Trademark Infringement!
- Previous by thread: Re: ssh x11 forwarding
- Next by thread: Re: ssh x11 forwarding
- Index(es):
Relevant Pages
|