X forwarding on Solaris x86 server
Hi all,
I'm working for the first time with a virtual x86 machine running Solaris 10. I need the Oracle 11.2 client libraries, and to do so need to have Xwindows forwarding working. I can ssh into the Solaris machine via PuTTY from a local Windows machine. Most howto's seem to assume that my Solaris box was set up with X preinstalled and running, which is not the case here, so that's likely where the missing piece(s) are. I feel like I may be close -- but so far, no banana. These are the Oracle client installation instructions I'm working from: Official: http://docs.oracle.com/cd/E11882_01/...c.htm#BGBEAGAJ Unofficial: http://webmodelling.com/webbits/data...solaris10.aspx For X, I've installed: Code:
SUNWarc SUNWbtool SUNWhea SUNWlibms SUNWmfrun SUNWxorg-client-programs SUNWxorg-clientlibs Code:
AllowTcpForwarding yes PuTTY: Have X11 forwarding enabled in settings Exceed Windows x server: Have added the Solaris virtual machine's IP to C:\Program Data\Hummingbird\Exceed\xhost.txt and restarted Exceed. The Exceed title bar states that it's listening on <windows IP>:0. (Note: I have access to Exceed. Period.) On Solaris: Code:
-bash-3.2# export DISPLAY=localhost:0 Any ideas what I missed? Many thanks! |
You shouldn't set the DISPLAY variable with a properly configured X forwarding sshd. It should already be set to localhost:10.
Do you directly log in as root with ssh ? |
Thanks for the reply!
No, I'm logging in as a regular unprivileged user and using pfexec su - to get to root (and once that works, to oracle) |
You are losing the DISPLAY variable when switching users. Check if it is set before su-ing to root.
The simplest way would be to directly log in as oracle. |
I'm trying it all as root, right now. There's no losing of $DISPLAY.
Code:
-bash-3.2# echo $DISPLAY |
Why is DISPLAY set to:
Code:
localhost:50 Code:
X11DisplayOffset 10 Are there other ssh sessions pending ? Why are you connecting as root and not oracle ? |
Quote:
Quote:
To doublecheck, the same thing happens when I log over to oracle: Code:
-bash-3.2# exit |
I'm afraid you are confusing su-ing and login.
You have zero chance for ssh X forwarding to work by setting the DISPLAY variable yourself. I wrongly thought localhost:50 had been automatically set but that doesn't seem to be the case. Please log in remotely from your ssh client under whatever account authorized to access throuch ssh to the Solaris server and make sure X11 forwarding is enabled in the client settings. When logged in, check if the DISPLAY variable is set. Don't run "su". |
Hi, thanks for replying.
This time logging in directly as oracle. Confirmed that X11 Forwarding is checked in PuTTY settings for the session: Code:
Using keyboard-interactive authentication. |
I still don't understand why you get 50 when 10 is expected. Again, are there other ssh sessions pending on the server?
Anything of interest in putty event log ? |
Hm. I will check the event log - didn't realize it had one as a standalone binary. I will check on that.
No other sessions on the server; it's a private VM and I'm the only one who knows the IP. |
ETA: Solved.
I am pretty sure that these must be specific to our firewall, but in the end I had to go into my SSH client settings and disable X11 Forwarding, and then under Tunnels, add a forwarded Remote port with Source Port: 6050 Destination: localhost:6000 On the VM $DISPLAY is still set to localhost:50, and there were no changes to Exceed (I took the VM's IP out of Exceed's xhost.txt file, actually, and it still works). Thanks again for all of your help! |
There are no X server logs to expect on the Solaris side, the X server is supposed to run on the Windows one. On the other hand, there should be some putty logs, perhaps do you need to enable them.
Are you able to forward X through ssh when connected to a different machine (Solaris or Linux) or is it your first attempt ? |
All times are GMT -5. The time now is 07:58 PM. |