Tunnel X over ssh for 11.3


 
Thread Tools Search this Thread
Operating Systems Solaris Tunnel X over ssh for 11.3
# 1  
Old 02-02-2016
Tunnel X over ssh for 11.3

Hello Solaris experts:

Trying to bring the 11.3 gdm screen over ssh to a Linux Box:

I did the following:

1. made chanes to /etc/ssh/sshd_config & bounced ssh daemon:

Code:
# X11 tunneling options
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes


2. From the remote Linux box:

Code:
ssh -X user@solaris-11.3-host


3. was able to run xeyes & xlogo


4. when I run startx, it hangs with the following msg:

=====================
Code:
** (gnome-power-manager:3324): WARNING **: DBUS error: Could not get owner of name 'org.gnome.ScreenSaver': no such name
Initializing nautilus-open-terminal extension
** (gnome-power-manager:3324): DEBUG: proxy is NULL, maybe the daemon responsible for org.gnome.ScreenSaver is not running?

** (nwam-manager:3331): WARNING **: nwam_walk_enms entity not found

** (nwam-manager:3331): WARNING **: nwam_walk_known_wlans entity not found

** (nwam-manager:3331): WARNING **: nwam_walk_enms entity not found

** (nwam-manager:3331): WARNING **: nwam_walk_known_wlans entity not found

============================

Any help would be appreciated !! Thnx

Last edited by DukeNuke2; 02-03-2016 at 04:42 AM..
# 2  
Old 02-03-2016
This works fine here and possibly in your case too.

How did you check startx is actually hanged?
# 3  
Old 02-03-2016
Quote:
This works fine here and possibly in your case too.
How did you check startx is actually hanged?
Well, no gdm screen from the Solaris host showed on the Linux host ..

Am I missing something ??
# 4  
Old 02-03-2016
You are indeed missing what startx is is about.

It is launching the X11 server and some X11 clients on the host where it is run, i.e. on Solaris in your case.

That's no surprise nothing shows up on the Linux display.
# 5  
Old 02-03-2016
Quote:
You are indeed missing what startx is is about.
It is launching the X11 server and some X11 clients on the host where it is run, i.e. on Solaris in your case.
That's no surprise nothing shows up on the Linux display.
Oh I C .. Thnx..

So How do I pipe the gdm screen to my Linux host just using XDMCP ??

Without using VNC.. Thnx again
# 6  
Old 02-03-2016
XDMCP is unsecure and being obsoleted on modern OSes.

If your goal is to see Solaris desktop on your Linux display, you might use Xephyr to run an X server in a windows and remotely display the Solaris graphic environment of your choice in it. This can be tunneled through ssh.

Assuming you want Solaris Gnome, that would be something like, on Linux:

Code:
Xephyr :2 -screen 1024x768 &
gnome-terminal -display :2 &

Then, in the raw terminal window that should have appeared in the Xephyr one :

Code:
ssh -X solaris gnome-terminal

In the new terminal

Code:
nohup gnome-session &

If after a while, the windows decoration do not show up, (re)launch the windows manager:

Code:
metacity &

Note that i tested that with Solaris 11, that might be slightly different with Solaris 10.

Should you want to run CDE, I thing just launching "dtwm" should be enough.
This User Gave Thanks to jlliagre For This Post:
# 7  
Old 02-03-2016
That worked on my Arch Linux !!

Thank you so much Jlliagre !!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Tunnel using SSH

I am not clear with the part of concept of Tunneling using ssh. ssh -f -N -L 1029 192.168.1.47:25 james@192.168.1.47 I found out that above code works for me . but didn't quite well understood how ti works and need to ask you guys some questions. since we are using tunnel through ssh ... (2 Replies)
Discussion started by: lobsang
2 Replies

2. Proxy Server

WebSocket over SSH tunnel - is it possible?

Hello, I have a video streaming application that utilizes a WebSocket for the server <-> client communication. My goal is to make the video streaming service available over the internet in the cases where neither the server nor client have public IPs. One way to do this is over a VPN... (8 Replies)
Discussion started by: Vladislav
8 Replies

3. UNIX for Advanced & Expert Users

Ssh tunnel question

Hi all I have a suite of scripts that ssh to remote servers within a cluster and run some tests. This is done from a central server so that all of the test results can be captured in one location. Problem is I now have 509 tests and the number is growing. The scripts work by establishing a... (2 Replies)
Discussion started by: steadyonabix
2 Replies

4. IP Networking

Help with SSH tunnel?

I have a Java web app on machine (X) that needs to talk to an LDAP server (Y) on :636, but the LDAP server is only accessible on a particular network. I can login to a machine (Z) on that network from X, and this machine can talk to the LDAP server on :636. How can I tunnel so that X can... (2 Replies)
Discussion started by: spacegoose
2 Replies

5. UNIX for Dummies Questions & Answers

SSH tunnel working for ssh but not for sshfs

I'm trying to setup a link between my home pc (work-machine) and a server at work (tar-machine) that is behind a gateway (hop-machine) and not directly accessible. my actions: work-machine$ ssh -L 1234:tar-machine:22 hop-machine work-machine$ ssh -p 1234 user@127.0.0.1 - shh access on... (1 Reply)
Discussion started by: Vathau
1 Replies

6. Cybersecurity

RDP over SSH Tunnel

Hi all, I'm trying have an alternative way of connecting into a Corporate network. Mostly in case the VPN down as I cannot also change the security policy. I want to expose windows RDP over ssh tunnel. I have 3 hosts in my scenario 1- Host a : Windows 2k8 has no internet access just only an... (3 Replies)
Discussion started by: h@foorsa.biz
3 Replies

7. UNIX for Advanced & Expert Users

Stopping SSH tunnel

I have initiated a tunnel for vncserver. now i want to stop it. is there any way except sleep option? (2 Replies)
Discussion started by: majid.merkava
2 Replies

8. UNIX for Advanced & Expert Users

ssh decipher a tunnel

Two question here, but it's only one on the protocol point of view. If two persons use the same key to connect to a SSH server is there a risk they can decipher the other tunnel. In other terms is that less safe than if they have two separate keys. Same question if two persons use the same user... (2 Replies)
Discussion started by: moi
2 Replies

9. Shell Programming and Scripting

SSH Tunnel Forwarding with no shell

Hi Experts, I am trying to have the SSH tunnel Remote forwarding command in a shell script. I should be able to do 2 tasks, but unable to get that going. 1) I have 3 servers Server 1, Server 2, Server 3. I have my Database running on Server 1 and my script running on Server 2 which should... (0 Replies)
Discussion started by: Scriptingglitch
0 Replies

10. Programming

using a ssh tunnel with nx compression

hi everybody and thank you for this wondefrul forum this is my first thread posted here and i hope that i could find some help from your part (i am even sure) :D here is the situation: i am to develop an application of remote desktop access such as vnc, vpn and especially nx i want to develop... (0 Replies)
Discussion started by: bolboln01
0 Replies
Login or Register to Ask a Question