Re: ssh x11 forwarding



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/
.



Relevant Pages

  • Re: .Net Scalability problem
    ... LoadRunner will peak out a server with a few virtual users. ... To get an idea of load, ... Fire off the test client and watch the number of ... > So I think that the MTC generate concurrent connection and per ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection lost at same time every hour (sometimes)
    ... After making the two following alterations on the server the problem seems ... After analyze your ipconfig on SBS and client, ... Then, other connection is good, ...
    (microsoft.public.windows.server.sbs)
  • Re: server disconnection - very often
    ... Reason of permanent popups is VMware server aplication on clients. ... Run CEICW to configure the network of SBS: ... Two network adapters - manual router connection to broadband ... Uninstall VMware on client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Lan setup 2 nic
    ... The external nic only has TCP/IP enabled. ... Ipconfig of the server is looking good, but the client is still missing the ... > connection so we have a 2 nic with router setup now. ...
    (microsoft.public.windows.server.sbs)
  • Re: Regular disconnections from remote web workplace
    ... I can connect to office server and all office clients from home at all times ... be physically working right up until the connection is lost. ... If I enter http://companyip from a client I receive the login screen for the ... Click Services tab and select Hide All Microsoft Services and Disable ...
    (microsoft.public.windows.server.sbs)