Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



SSH- Solaris 2.8

MattG
10-07-2004, 09:59 AM
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.

Thanks!

-Matt

Nodsu
10-07-2004, 12:25 PM
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.

Ad
10-07-2004, 12:25 PM
  

MattG
10-07-2004, 01:00 PM
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 "192.168.146.21:0.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: Can't open display: 192.168.146.21:0.0

Im assuming something is wrong on the client end now?

Im running exceed, and SSH has X11 Forwarding enabled.

MattG
10-07-2004, 02:23 PM
Fixed it.

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

Works great now.

Thanks.

Nodsu
10-08-2004, 04:56 AM
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.

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Stardock CEO: Steam holds 70% of digital distribution market

Google: Android, Chrome OS to converge eventually

Microsoft to showcase Natal at Gamefest in February

Microsoft and News Corp potential alliance, against the open Web

Opera 10.10 launches with Unite sharing technology

More Tech News

  
 Software Downloads

WinDVD 10.05 Pro 2010 (formerly WinDVD Platinum)

Opera 10.10 for Windows

Mp3tag 2.45

FinalBurner 2.15

Google Chrome 4.0.249.00 Beta

Magic DVD Creator 11.0.10.189

Dynamic Notes 3.44

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.