Re: X11 forwarding through SSH: Can't open display



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sk89q wrote:
On Mon, Jan 26, 2009 at 6:32 AM, Bill Moran <wmoran@xxxxxxxxxxxxxxxxx> wrote:
In response to sk89q <the.sk89q@xxxxxxxxx>:

I meant sshd_config.
Do you have the xauth package installed on the remote server? You don't
need a full X install, but X11 forwarding won't work without xauth
installed.

Yes, I do (at least to my knowledge), but xauth is located at
"/usr/local/bin/xauth". sshd wasn't able to find xauth, so I made a
hard link at "/usr/X11/bin/xauth" to "/usr/local/bin/xauth". That
fixed a can't-find-xauth error, and that's where I am now.

I think a far more likely thing might be being missed here. Usually when I'm
surprised when a new system refuses to allow me to remotely open X apps, it's
not the problem of ssh, it's because X11, by default, doesn't open up the port
6000 IP socket to allow remotes to work. You can easily use netstat, to look
for open sockets 6xxx range, opened by your X server. If you can't find it,
then some part of your X installation is likely giving the -nolisten tcp
commands when starting up the X server. I don't know how you open your X, so I
couldn't directly tell you how to fix this.

Being a bit more honest, the X server itself doesn't block the remote ports.
It's all of the startup tools (like startx) which stick in the anti-remote
prejudice. Giving the fact that it IS a security risk, I guess they're right,
it just means that if you want remote operation, you need to tell X (via
whatever startup method you use) to stop blocking the opening of that port 6000.


On Sun, Jan 25, 2009 at 10:02 PM, Peter Boosten <peter@xxxxxxxxxxx> wrote:
sk89q wrote:
Hello,

I am using FreeBSD 6.2 and I have been trying to get X11 forwarding
through SSH to work. I've gotten to the point where the environment
variable "DISPLAY" is set, but I get a "Can't open display" error when
I attempt to run an X application. The remote server in question does
not have an X server install.

In /etc/ssh/ssh_config, I have the following lines:
X11Forwarding yes
AllowTcpForwarding yes
UseLogin no

Have a look at /etc/ssh/sshd_config of the remote server and restart
sshd after modification.

Peter

--
http://www.boosten.org

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl98QwACgkQz62J6PPcoOmRaQCglJDR9D5/C1Wp5Q0cnd6Z3bi3
cvMAoI14mmJVzWWhRsJmT0lKsvakVkbu
=BS/x
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Changing from App mode to Remote Admin mode via registry
    ... applications on the terminal server. ... Remote admin mode is simply activated by going ... Microsoft MVP - Terminal Server ... We'd like to do this because our application doesn't install right now in ...
    (microsoft.public.windows.terminal_services)
  • Re: Problems after SP2
    ... Can you connect to RWW and then remote to a client PC, or is this effecting clients and server? ... > install last time we tried it I think I'll just skip it and forge ahead ...
    (microsoft.public.windows.server.sbs)
  • Re: Printing issue in XP over Remote Desktop VPN
    ... I am trying to remote to another XP machine. ... So your saying I should install the print drivers on the machine I'm ... Look for Terminal Server event ... a driver that is not available on the Windows 2000 Server. ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Run VB6 .exe on server from a remote machine on same network; db is SQL Server 2000
    ... If you have a connection by DSM you already have all the components needed, ... > Ours is the first scenario: Running the app (residing on a remote server) ... > When you say "might as well install the program at the ... > If "Yes" then I assume we can delete the app from the server. ...
    (microsoft.public.vb.general.discussion)
  • VS: Strange problem with forwarding X11 traffic - solution !!!
    ... Then X11 forwarding worked flawlessly. ... I have set up a remote RH 8.0 LINUX server with build in openssh support. ... am fully capable of getting a ssh connection, ...
    (SSH)