[Solaris-Users] [Solaris 10] smc GUI over ssh
Chris Henderson
henders254 at gmail.com
Tue Feb 17 13:40:23 EET 2009
I am trying to start the GUI /usr/sbin/smc over SSH. But I get error:
"It appears you are attempting to run the graphical Solaris Management
Console from a terminal which does
not have a suitable 'DISPLAY' environment. Please check your 'DISPLAY'
settings and that the user identity of this terminal has access to the
X server of this display."
I am doing ssh -X username at server and then "su" to become root and type: smc
On the server's sshd_config I have:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
On the client's sshd_config
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
As root, if I type: echo $DISPLAY I get blank. As normal user (the use
I ssh as), if I type echo $DISPLAY I also get blank.
The shell for both the normal user and root is /bin/sh
If I try to set display "export DISPLAY=localhost:11.0" or export
DISPLAY=localhost I get error: DISPLAY=localhost:11.0: is not an
identifier. Also tried "export DISPLAY=client's_ip_address:0" - get
the same error.
Before I ssh'd to the server I also tried typing xhost + (on the
client) with no luck.
sshd has been restarted on both the client and server.
Thanks for any help.
More information about the Solaris-Users
mailing list