You are not logged in.

#1 2012-07-28 10:41:02

cvhacker
Member
Registered: 2012-07-12
Posts: 2
Website

Reverse ssh forward and X forward

I have a quite complex question to ask. The problem is with the system admin who has some special preferences...

The problem:
I want to run remote X applications but forward it to my computer. The tradition X forward over ssh is disabled by him, he only allows using the export DISPLAY=some_ip_addr:0 to forward X applications. However, my PC does not have a static address.

SERVER: where I want to have my X applications to run
PC: my *LOCAL* PC where I want the GUI on
SSH_SERVER: a ssh server which has a static IP address

I have enabled the X server to listen to TCP on my PC. I wanna using ssh -R 6000:localhost:6000 user@SSH_SERVER and using export DISPLAY=SSH_SERVER:0. However, I failed on this way.

Do you hae any suggestiongs that I can overcome this problem? Or anythin I did not make myself clear, please post here as well.

Many thanks!

Offline

#2 2012-07-31 22:03:43

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Reverse ssh forward and X forward

Chance are that the remote port 6000 are already taken by a local Xserver. Try the following:

ssh -R 6018:127.0.0.1:6000 user@SSH_SERVER

and use

export DISPLAY=127.0.0.1:18

If it does not work try to type xhost + on your machine to enable any one to connect (warning just use that for testing purpose, if it is the problem use something more elaborate as xhost +YOUR_SERVER).

Offline

Board footer

Powered by FluxBB