PDA

View Full Version : [ubuntu] How to log into x remotely



lsutiger
August 15th, 2008, 08:26 PM
I was reading this post (http://ajopaul.wordpress.com/2007/11/23/remote-login-to-linux-from-windows-non-vnc/) in order to log into a linux box from windows with X.

The only problem is that it does not explain which port X listens to. The computer I will try to log into is behind a firewall.

So...the question is, which port do I open and direct to accomplish this?

bingoUV
August 15th, 2008, 08:44 PM
I was reading this post (http://ajopaul.wordpress.com/2007/11/23/remote-login-to-linux-from-windows-non-vnc/) in order to log into a linux box from windows with X.

The only problem is that it does not explain which port X listens to. The computer I will try to log into is behind a firewall.

So...the question is, which port do I open and direct to accomplish this?

Do you seriously have a requirement of non-vnc access? I believe vnc works great, and the argument given here that "unlike VNC where actually you are viewing a already running X session." is totally false.

Vnc client is freely available for windows and you do not need to open any port in the firewall in the windows machine. You need to open port 5900 (can be changed) for the linux machine on which you run the vnc server.

lsutiger
August 15th, 2008, 10:09 PM
Yes, to have remote users login with their own session.

The question at hand was which port do I open and direct to accomplish this.

wd5gnr
August 15th, 2008, 10:45 PM
Usually port 6000 + screen #. I've done this before, although not lately.

What I usually do not (just added this) is:

ssh -l user -X hostname

Now you have an X session over ssh which is secure and easy to tunnel.

lsutiger
August 15th, 2008, 11:09 PM
Thank you, I will look into it more