I've currently have the following situation.

I have a server, that is connected to the internet with ssh (on a non 22 port). This is an ubuntu server without X server. Now i have a machine inside this network, that is used as a desktop machine.

Is it possible to forward all request on a specific port (for the server) directly to that desktop machine, to be able to use the Xserver over SSH?

link|improve this question
1  
This belongs on ServerFault or Superuser. But yes, you can - set up a reverse tunnel from the desktop to the server, exposing a port on the server which will be forwarded to the desktop. It's done with -R on standard ssh. – Tom Anderson Jan 31 '11 at 13:50
feedback

migrated from stackoverflow.com Feb 26 '11 at 22:55

This question came from our site for professional and enthusiast programmers.

1 Answer

If you want the X client to appear on your desktop machine, the normal way I do this is with ssh -X servername

Check to make sure your Display environment variabile is set via echo $DISPLAY and any xclient started from that X session will show up on your desktop x server.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.