![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
I installed OpenBSD on a Sun Balde 1500. X is working on the machine itself (for example with gnuplot and GNU Octave). However it doesn't work through ssh. With my FreeBSD machines I don't get this issue.
Code:
$ gnuplot
G N U P L O T
Version 4.2 patchlevel 6
last modified Sep 2009
System: OpenBSD 4.6
Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009
Thomas Williams, Colin Kelley and many others
Type `help` to access the on-line reference manual.
The gnuplot FAQ is available from http://www.gnuplot.info/faq/
Send bug reports and suggestions to <http://sourceforge.net/projects/gnuplot>
Terminal type set to 'x11'
gnuplot> plot sin(x)
gnuplot: unable to open display ''
gnuplot: X11 aborted.
Code:
# uname -a OpenBSD Tiphareth.home 4.6 GENERIC#43 sparc64 |
|
||||
|
You need "X11Forwarding yes" in the applicable sshd_config, and either "ForwardX11 yes" in the applicable ssh_config, or use "ssh -Y".
__________________
OpenBSD LiveCDs/LiveDVDs |
|
||||
|
To clarify my comment, "ForwardX11 yes" is equivalent to ssh -X, and "ForwardX11Trusted yes" is equivalent to ssh -Y.
See the man pages for ssh_config(5) and ssh(1).
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
I tried what you mentioned but like expected it didn't work.
I compared with my FreeBSD (where X forwarding works for all my machines) and saw no difference between the "ssh_conf" and "sshd_conf" files from FreeBSD and OpenBSD. I even think it's enabled by default. Code:
# ForwardX11 no Could it be that I missed installing some components? In FreeBSD I simply build Xorg from the ports and it works. |
|
||||
|
In OpenBSD, all OpenSSH configurations are left to their defaults. That is reasonable, as OpenSSH is developed on OpenBSD.
X11 Forwarding is disabled by default for both the client and server.
If 'ssh -Y <myserver>' does not work for you, then examine the sshd_config in use on <myserver>. If you can confirm X11 forwarding has been explicitly enabled, with "X11Forwarding yes" then you must debug the configuration. Try 'ssh -v -v -v -Y <myserver>' and examine the debugging output.
__________________
OpenBSD LiveCDs/LiveDVDs Last edited by jggimi; 9th January 2010 at 05:10 PM. |
|
||||
|
-If- OpenSSH's X11 forwarding is enabled by both client and server, and used, the $DISPLAY environment variable will be set automatically in the shell provided to the client.
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OpenBSD, vpnc and packets forwarding problems | Tritone | OpenBSD General | 3 | 2nd July 2009 09:59 PM |
| Bootonly CD Fails | rtwingfield | FreeBSD Installation and Upgrading | 1 | 29th December 2008 12:25 AM |
| x11 forwarding over ssh not working | kasse | OpenBSD General | 14 | 23rd December 2008 01:21 PM |
| port forwarding | ikevmowe | OpenBSD Security | 13 | 21st November 2008 05:03 PM |
| VNC port forwarding help | revzalot | OpenBSD Security | 3 | 10th September 2008 06:59 AM |