Are you attempting to display to another UNIX machine, or to a
windows machine? (it doesn't matter too much, if you have a
way to start an X server on the machine you are sitting at, you
can do it).
On a linux box, you want to start an X server (just the server, not
a window manager) on the client machine (the machine FROM
which you will be sshing). To do this, you can normally just run:
This should start up an xserver with just an xterm running, and an
ugly grey background. Now, with the xterm you ssh into your
server and then run the window manager program (not an X
server, just the window manager). This will start up the WM on
your client machine via an SSH tunneled X.
The theory is the same for an X server running on another OS:
start a raw X server, connect via ssh to the server, start your
window manager.
As far as I know, you can't do this from the linux console
because ssh sees that there is no X running and so doesn't
open a tunnel.