SSH- Solaris 2.8

By MattG ยท 4 replies
Oct 7, 2004
  1. Hey Everyone,

    Its been some time since i have posted on these threads.

    Only this time i am having an issue myself.

    Here is the scenario:

    A customer is trying to open one of our GUI products through SSH, and its not working. However, redisplay works fine. They would rather use SSH, due to it being "Secure". So with that said, i tried to reproduce the issue they are having...and well im pretty good at that part :)

    I type in say 'emacs' and i get no error, but emacs opens on the server box (solaris)

    I have Xforwarding set to yes in teh sshd_config in /usr/local/etc (where solaris installs SSH apprently)

    I have even tried setting X11Uselocalhost to no, and still to no avail.

    If anyone has any idea what else i can try, please let me know.

    PS- BTW on the Client side, i do have the ssh_config set up properly, and when using putty or TTERMSSH i have set the X11 Settings on there. So that isnt the issue.


  2. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    X forwarding must be enabled on both the client and server side. When you have logged into the server via SSH, look at the DISPLAY environment variable. Applications are displayed on the screen where this variable points to.
  3. MattG

    MattG TS Rookie Topic Starter Posts: 140

    Its enabled on both ends.

    DISPLAY environment can be changed with the command:

    export DISPLAY=<ip>:0.0 (or display of choice)

    When i send that, i get this error:

    Xlib: connection to "" refused by server
    Xlib: Client is not authorized to connect to Server
    Error: Can't open display:

    Im assuming something is wrong on the client end now?

    Im running exceed, and SSH has X11 Forwarding enabled.
  4. MattG

    MattG TS Rookie Topic Starter Posts: 140

    Fixed it.

    It was Hummingbird Exceed the whole time. It was denying all Clients to connect to it.

    Works great now.

  5. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    When you are tunnelling X through SSH the DISPLAY variable should be pointing to a virtual X server on the SSH sever machine. This variable is set by sshd itself when X forwarding is requested by the client.

    For example if I log in via SSH then the environment variable DISPLAY is set to "localhost:10:0". Display 10 is a virtual X server created by sshd. All requests to that server are forwarded through the encrypted SSH tunnel to my local machine.
Topic Status:
Not open for further replies.

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...